摘要: 使用mysql语句执行时可以执行成功,但是使用go语言编程保存到struct中时出现问题。 代码如下: sflog.Debug("QueryByTaskId ", id) type Data struct { TaskId int64 `json:"taskId"` VehicleName stri 阅读全文
posted @ 2024-03-08 18:32 hbg-rohens 阅读(10) 评论(0) 推荐(0) 编辑
摘要: virutal box安装了 ubuntu 16.04, 执行命令 sudo apt update 时报错: Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) 百度了很多答案, 阅读全文
posted @ 2023-06-13 10:55 hbg-rohens 阅读(465) 评论(1) 推荐(1) 编辑
摘要: mysql中时间字段datetime怎么判断为空和不为空一般为空都用null表示,所以一句sql语句就可以。select * from 表名 where 日期字段 is null;这里要注意null的用法,不可以用=null这样的形式表示。相反,要取出不为空的数据,就是is trueselect * 阅读全文
posted @ 2023-03-20 11:24 hbg-rohens 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 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: 阅读全文
posted @ 2023-03-14 09:50 hbg-rohens 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 是一个跨平台的网络协议库,支持http/https/ftp/gopher/telnet/dict/file和ldap协议。 官网: ubuntu平台下安装 : sudo apt-get install libcurl4-openssl-dev libcurl库的使用 1)初始化 curl_globa 阅读全文
posted @ 2023-02-03 15:23 hbg-rohens 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 对于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 阅读全文
posted @ 2023-01-30 14:51 hbg-rohens 阅读(696) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env bash # 打开显示调试信息 set -x ######################################## # download & build depend software #################################### 阅读全文
posted @ 2023-01-30 14:36 hbg-rohens 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-01-28 14:45 hbg-rohens 阅读(99) 评论(0) 推荐(0) 编辑
摘要: @before的作用就是在一个类中最先执行的方法 @after的作用就是在一个类中最后执行的方法 这样就可以把一些重复执行的代码抽取出来 , 这样我们就不用书写这些的重复的部分了 阅读全文
posted @ 2022-12-09 10:55 hbg-rohens 阅读(120) 评论(0) 推荐(0) 编辑
摘要: AT 命令集是一种应用于 AT 服务器(AT Server)与 AT 客户端(AT Client)间的设备连接与数据通信的方式。 基本概念 一般 AT 命令由三个部分组成,分别是:前缀、主体和结束符。其中前缀由字符 AT 构成;主体由命令、参数和可能用到的数据组成;结束符一般为 ("\r\n")。 阅读全文
posted @ 2022-11-30 17:13 hbg-rohens 阅读(420) 评论(0) 推荐(0) 编辑