摘要:
使用mysql语句执行时可以执行成功,但是使用go语言编程保存到struct中时出现问题。 代码如下: sflog.Debug("QueryByTaskId ", id) type Data struct { TaskId int64 `json:"taskId"` VehicleName stri 阅读全文
摘要:
virutal box安装了 ubuntu 16.04, 执行命令 sudo apt update 时报错: Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) 百度了很多答案, 阅读全文
摘要:
mysql中时间字段datetime怎么判断为空和不为空一般为空都用null表示,所以一句sql语句就可以。select * from 表名 where 日期字段 is null;这里要注意null的用法,不可以用=null这样的形式表示。相反,要取出不为空的数据,就是is trueselect * 阅读全文
摘要:
when use libucrl (c++) to code in ubuntu 16.04, then docker it to the centos 8, report this error: [ERROR] 2023-03-13_13:33:56 line 715 curl_oper.cpp: 阅读全文
摘要:
是一个跨平台的网络协议库,支持http/https/ftp/gopher/telnet/dict/file和ldap协议。 官网: ubuntu平台下安装 : sudo apt-get install libcurl4-openssl-dev libcurl库的使用 1)初始化 curl_globa 阅读全文
摘要:
对于set命令-o参数的pipefail选项,linux是这样解释的: “If set, the return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero statu 阅读全文
摘要:
#!/usr/bin/env bash # 打开显示调试信息 set -x ######################################## # download & build depend software #################################### 阅读全文
摘要:
@before的作用就是在一个类中最先执行的方法 @after的作用就是在一个类中最后执行的方法 这样就可以把一些重复执行的代码抽取出来 , 这样我们就不用书写这些的重复的部分了 阅读全文
摘要:
AT 命令集是一种应用于 AT 服务器(AT Server)与 AT 客户端(AT Client)间的设备连接与数据通信的方式。 基本概念 一般 AT 命令由三个部分组成,分别是:前缀、主体和结束符。其中前缀由字符 AT 构成;主体由命令、参数和可能用到的数据组成;结束符一般为 ("\r\n")。 阅读全文