摘要: 在我成长的过程中,有过迷失的时候,有过分不清光荣和耻辱的时候。 但是好在最后,我从迷失里走了出来,决心做一个明辨荣辱的人。 据我所知,这个证书在地中海银行已经有五十年的历史了。到目前,获奖的人数刚刚过三百。我的编号是302。 我知道,它奖励的不是我做出了多少贡献,而是奖励我没有个人的利益而背叛大家。 阅读全文
posted @ 2024-01-13 12:53 罗曼骑士 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 在一次对接海康onvif协议设备时,调用getprotfiles 返回错误码4(SOAP_TYPE),意思是 :An XML Schema type mismatch 。 显然问题出在海康设备返回的数据格式不对,唯一能做的就是找到出错的数据,然后看看能不能修改一下soap源代码,让其流程继续进行下去 阅读全文
posted @ 2021-10-09 11:45 罗曼骑士 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 引言 最常见的发送文件模型如下图所示: 这个模型涉及以下内存拷贝: 磁盘 PageCache PageCache 用户缓冲区 用户缓冲区 Socket 缓冲区 Socket 缓冲区 网卡 因为涉及到多次内存拷贝,消耗过多的 CPU 资源,降低系统并发处理能力。 零拷贝技术 从技术实现上来讲,零拷贝不 阅读全文
posted @ 2020-05-24 14:56 罗曼骑士 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 编写存储过程sql 以给brand表添加phone字段为例: 命令行方式执行存储过程 执行以下命令: 命令1: 选择操作的数据库 user dbname ; 命令2:修改行分割符 delimiter ;; 命令3:执行sql文件 source /root/xxx.sql 命令4:恢复行分割符 del 阅读全文
posted @ 2019-05-15 10:15 罗曼骑士 阅读(10710) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include #include static int say_hello(lua_State *L) { const char *s = lua_tostring(L,1); printf("hell,%s\n",s); return 0; } int main(void) { lua_State *L = l... 阅读全文
posted @ 2019-04-30 11:23 罗曼骑士 阅读(482) 评论(0) 推荐(0) 编辑
摘要: ``` package main import ( "fmt" "github.com/yuin/gopher lua" ) func hello(L lua.LState) int { inputparam := L.ToInt(1) fmt.Println("func hello get:",i 阅读全文
posted @ 2019-04-29 19:24 罗曼骑士 阅读(2698) 评论(0) 推荐(0) 编辑
摘要: 使用golang 开发有时会遇到 golang unrecognized import path "golang.org/x" 之类的错误。原因是无法访问golang.org网站去下载对应的文件。 如果使用的开发IDE是goland,那么 打开 FILE setting Go Modules 选项 阅读全文
posted @ 2019-04-29 11:13 罗曼骑士 阅读(9844) 评论(0) 推荐(1) 编辑
摘要: · TEMPLATE = app CONFIG += console c++11 CONFIG = app_bundle CONFIG = qt SOURCES += \ main.cpp LIBS += llibXXX L库目录 INCLUDEPATH += 头文件目录 · 注意目录路径要按win 阅读全文
posted @ 2019-04-09 14:47 罗曼骑士 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: /* Basic example of an application using JDBC API of Connector/C++ */ /* Standard C++ includes */ #include #include #include #include /* Note: Boost must be in the include path to build code... 阅读全文
posted @ 2019-03-15 10:42 罗曼骑士 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 平台 ubuntu 16.04 参考文档: https://dev.mysql.com/doc/dev/connector-cpp/8.0/building.html 下载源码 访问 https://dev.mysql.com/downloads/connector/cpp/ ,选择source c 阅读全文
posted @ 2019-03-15 10:13 罗曼骑士 阅读(4067) 评论(0) 推荐(0) 编辑