自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(50)
  • 资源 (1)
  • 收藏
  • 关注

原创 apollo脚本

cat mydate.txt grep -E 'aaa' > mydate2.txtgit checkout -b cyber_lincoln origin/cyber_lincolngit clone http://222.240.49.2:1818/apollo_local_dev/apollo_cidi.git #下载源码bash docker/scripts/instal...

2019-04-08 08:58:14 977

原创 使用stunnel加密nfs

一、下载stunenl并安装http://www.stunnel.org二、服务器配置2.1 生成密钥opensslreq-newkeyrsa:4096-x509-days3650-nodes-outstunnel.pem-keyoutstunnel.pem拷贝stunnel至/etc/stunnel2.2 配置conf拷贝源码下默认配置到/etc/stunnel运行stunnel /etc/stunnel/stunnel.conf三、客户端配...

2021-11-02 11:34:33 434

原创 SDP软件定义边界入门1

参考:SDP架构初识 - syyh-01 - 博客园一、定义定义sdp:SDP是Software Defined Perimeter的缩写,全称是软件定义边界。理解:SDP改变了传统的网络控制模式, 原来通过网络TCP/IP、 路由做寻址, 现在通过身份寻址。 SDP旨在使应用程序所有者能够在需要时部署边界, 以便将服务与不安全的网络隔离开来。软件定义边界(SDP)是由云安全联盟(CSA)开发的一种安全框架,它根据身份控制对资源的访问。该框架基于美国国防部的“need to know”模型—

2021-10-28 09:30:07 1089

原创 设计模式7-桥接模式

引用:2. 桥接模式 — Graphic Design Patterns桥接模式(Bridge Pattern):将抽象部分与它的实现部分分离,使它们都可以独立地变化。它是一种对象结构型模式,又称为柄体(Handle and Body)模式或接口(Interface)模式。桥接模式包含如下角色:Abstraction:抽象类 RefinedAbstraction:扩充抽象类 Implementor:实现类接口 ConcreteImplementor:具体实现类 一、go语言版..

2021-09-26 13:53:41 116

原创 设计模式6-适配器模式

引用:1. 适配器模式 — Graphic Design Patterns适配器模式(Adapter Pattern) :将一个接口转换成客户希望的另一个接口,适配器模式使接口不兼容的那些类可以一起工作,其别名为包装器(Wrapper)。适配器模式既可以作为类结构型模式,也可以作为对象结构型模式。适配器模式包含如下角色:Target:目标抽象类 Adapter:适配器类 Adaptee:适配者类 Client:客户类适配器模式有对象适配器和类适配器两种实现:一、g...

2021-09-24 11:50:25 82

原创 设计模式5-单例模式

引用:C++实现线程安全的单例模式 - myd620 - 博客园单例模式-地鼠文档5. 单例模式 — Graphic Design Patterns单例模式(Singleton Pattern):单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例,这个类称为单例类,它提供全局访问的方法。一、go语言版package mainimport "sync"import "fmt"type Singleton struct{}var singleton *Sin

2021-09-22 16:16:34 60

原创 设计模式4-建造者模式

引用:4. 建造者模式 — Graphic Design Patterns建造者模式包含如下角色:Builder:抽象建造者 ConcreteBuilder:具体建造者 Director:指挥者 Product:产品角色 一、go语言版 package main import "fmt" type Product struct { a int b int c int } func (product *Product...

2021-09-22 13:15:59 48

原创 设计模式3-抽象工厂

在工厂方法模式中具体工厂负责生产具体的产品,每一个具体工厂对应一种具体产品。一、 go语言版package mainimport "fmt"type Product interface { Show(name string) string}type ProductA struct{}func (*ProductA) Show(name string) string { return fmt.Sprintf("MyProductA is %s", name)}type...

2021-09-18 14:45:58 98

原创 设计模式2-工厂模式

在工厂方法模式中,核心的工厂类不再负责所有产品的创建,而是将具体创建工作交给子类去做。一、go语言版package mainimport "fmt"type Product interface { Show(name string) string}type productA struct{}func (*productA) Show(name string) string { return fmt.Sprintf("MyProduct is %s", name)}t...

2021-09-18 11:40:34 65

原创 代理模式设计

代理模式(Proxy Pattern) :给某一个对象提供一个代 理,并由代理对象控制对原对象的引用。代理模式的英 文叫做Proxy或Surrogate,它是一种对象结构型模式。一、go语言实现package mainimport "fmt"type Request interface { Get(msg string) string}type HttpRequest struct{}func (HttpRequest) Get(msg string)...

2021-09-17 15:51:40 72

转载 设计模式1-简单工厂模式

参考:1. 简单工厂模式( Simple Factory Pattern ) — Graphic Design Patterns简单工厂模式-地鼠文档

2021-09-17 09:39:37 91

原创 selinux自定义策略

简介:sepolicy generate命令用于生成初始SELinux策略模块模板。sepolicy generate还会创建一个RPM规范文件,该文件可用于构建RPM软件包,该软件包将策略软件包文件(NAME.pp)和接口文件(NAME.if)安装到正确的位置,将SELinux策略安装到内核中。当sepolicy generate执行时,将产生以下文件:NAME.te–键入执行文件 该文件定义了特定域的所有类型和规则。policy_module(exam...

2021-02-04 16:14:29 1630

原创 qt界面工具总结

一、信号槽函数可以传递QVectorvoid Dialog::setSaftType(QVector<int> type);emit pushButtonSignal(text);connect(&dialog, &aDialog::pushButtonSignal, this, &bDialog::set);二、目录树实现class TreeView :public QTreeView类中使用QFileSystemModelm_model .

2021-01-15 11:54:55 274

原创 代码风格与静态检测

一、风格检测cpplint简介: https://blog.csdn.net/yelu_hong/article/details/83856306cpplint 源码 https://github.com/google/styleguide/blob/gh-pages/cpplint/cpplint.py简单使用 python cpplint.py test.cpp谷歌c++规范地址: https://zh-google-styleguide.readthedocs.io/e...

2020-12-11 11:05:06 180

原创 ganesha 编辑文件过程

编辑文件abcd (Vim abcd) ganesha执行过程分析:1._OP_LOOKUP abcd 返回 NFS4ERR_NOENT 正常2.执行_OP_OPEN .abcd.swp(OPEN4_NOCREATE),(返回一次fsal_lookup失败)返回NFS4ERR_NOENT 正常因为在open4_ex中判断arg->openhow.opentype!=OPEN4_CREATE(此处为OPEN4_NOCREATE)所以比第3步提前退出。3.再次执行_OP_OPEN...

2020-11-06 16:22:04 241

原创 pynfs简单使用

# pynfs使用教程 ### 1.如何下载, 编译安装,配置和使用 #####安装 ### $yum install python-devel $ln -s /usr/bin/python2 /usr/bin/python $./setup.py build###使用### 如果从文件根目录使用必须先执行 $./setup.py build_ext --inplace 或者直接进入文件目录运行 ./testserver.py SERVER:/P...

2020-11-06 16:19:56 890

原创 git 常规操作

#git 使用步骤 git branch git checkout -b Feature_# git status git branch git add git status git commit -m "" git config --global user.name git config --global user.email git commit -m "" git log -1 git push -f ...

2020-11-06 16:17:57 61

原创 加密文件系统笔记

#eCryptfs 简介##术语 FEK(sek): 密钥 FEK(File Encryption Key) FEKEK(ecryptfs_sig): 使用用户提供的口令(Passphrase)、公开密钥算法(如 RSA 算法)或 TPM(Trusted Platform Module)的公钥来加密保护刚才提及的 FEK(File Encryption Key Encryption Key) EFEK(): 加密后的 FEK(Encrypted File Encryption Ke...

2020-11-06 16:15:25 432 1

原创 nfs 性能测试

数据大小为1G,基本测试为单线程,测试项目为写入数据1.1cp测试测试方法function time_diff() { # time format:date +"%s.%N", such as 1502758855.907197692 start_time=$1 end_time=$2 start_s=${start_time%.*} start_nanos=${start_time#*.} end_s=${end_time%.*} end_...

2020-11-06 16:12:43 1956 2

原创 golang 多个goroutines怎么关闭其他剩下一个运行

for { select { case <-done: if connectedIp != ip { log.Infof("recv chan close:%v", ip) listener.Close() return } else { time.Sleep(time.Duration(4) ...

2020-10-29 17:10:32 112

翻译 音视频基础

音视频开发基础知识整理https://blog.csdn.net/liuqiyao_01/article/details/102971563

2020-03-10 14:05:18 120

翻译 c++网络基础

1、https://blog.csdn.net/kang___xi/article/details/808736002、https://www.cnblogs.com/zhuyp1015/p/4412985.html

2020-03-07 20:23:47 134

原创 PBE解密python实现

java加解密参考:https://www.cnblogs.com/duanxz/p/4385713.htmlimport base64from Crypto.Hash import MD5from Crypto.Cipher import DESimport hashlibimport pyDesdef Encrypt(params): pwd = '12345' ...

2020-03-06 14:21:42 610

翻译 base库之Thread类pthread_atfork

https://blog.csdn.net/sinat_22991367/article/details/104159739

2020-02-11 15:48:41 149

翻译 muduo types.h

转自:https://blog.csdn.net/xiaoc_fantasy/article/details/79570788https://blog.csdn.net/weixin_40021744/article/details/888029691、向上转换template<typename To, typename From>inline To implicit_c...

2020-02-11 14:54:08 143

转载 C++类成员指针

https://blog.csdn.net/xiongya8888/article/details/89439104https://www.jianshu.com/p/45a2410d4085

2020-02-10 12:04:29 117

翻译 线程安全队列

#ifndef CYBER_BASE_THREAD_SAFE_QUEUE_H_#define CYBER_BASE_THREAD_SAFE_QUEUE_H_#include <condition_variable>#include <mutex>#include <queue>#include <thread>#include <...

2020-02-09 10:09:50 183

翻译 atomic无界队列

#include <stdint.h>//#include <unistd.h>#include <atomic>#include <memory>template <typename T>class UnboundedQueue {public: UnboundedQueue() { auto node = ...

2020-02-08 21:12:48 177

翻译 atomic

1、atomic 简介https://blog.csdn.net/zxc024000/article/details/1007672112、C++ 并行编程之memory_orderhttps://www.cnblogs.com/zifeiye/p/8194949.html3、std::atomic::compare_exchange_weakbool compare...

2020-02-08 12:22:33 182

翻译 无锁有界队列

1、bounded_queue.h#include <stdint.h>//#include <unistd.h>#include <algorithm>#include <atomic>#include <cstdlib>#include <memory>#include "macros.h"#inclu...

2020-02-07 22:10:05 282

原创 cmake简单实例

根目录:cmake_minimum_required(VERSION 3.5.2)project(test CXX)set(CMAKE_CXX_STANDARD 11)set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/release)set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/d...

2019-12-19 10:57:20 103

原创 cmake入门

借鉴https://blog.csdn.net/shenziheng1/article/details/78125792https://blog.csdn.net/ajianyingxiaoqinghan/article/details/702309021、# cmake最低版本要求cmake_minimum_required(VERSION 3.5.2)2、# 项目名称和项目类型...

2019-12-19 09:53:27 116

原创 感知开机

bash scripts/conti_radar.shbash scripts/camera.cidi.shbash scripts/lidar_driver.shbash modules/cidi_perception/scripts/mk.sh s

2019-08-05 14:59:20 82

原创 术语记录

normalizeangle

2019-05-15 17:35:29 97

翻译 重要命令

cyber_recorder record -c /apollo/localization/pose /apollo/canbus/chassis /apollo/perception/obstacles /apollo/prediction /apollo/planning /apollo/controlcyber_channel echo /apollo/predictiondf -h...

2019-05-15 13:41:17 1395

原创 apollo日志

record_file: data/obstacle.00000version: 1.0duration: 22.681360 Secondsbegin_time: 2019-06-21 12:09:01end_time: 2019-06-21 12:09:24size: 1785645195 Bytes (1.66...

2019-04-30 14:48:40 2082

转载 apollo flag信息

文件 flag 参数 默认值DEFINE_bool(planning_test_mode, false, "Enable planning test mode.");DEFINE_double(test_duration, -1.0, "T...

2019-04-30 14:48:21 801

翻译 车辆参数信息

部分转自:https://www.tuicool.com/articles/UfIr6fMimport "modules/canbus/proto/chassis.proto";import "modules/localization/proto/pose.proto";message VehicleState { optional double x = 1 [default =0...

2019-04-28 15:35:07 1595

原创 planning3.5笔记

Apollo FSM:一个有限状态机,与高清地图确定车辆状态给定其位置和路线。 Planning Dispatcher:根据车辆的状态和其他相关信息,调用合适的Planner。 Planner:获取所需的上下文数据和其他信息,确定相应的车辆意图,执行该意图所需的规划任务并生成规划轨迹。它还将更新未来作业的上下文。 Deciders和Optimizers:一组实现决策任务和各种优化的无状态库。...

2019-04-24 10:13:19 796

翻译 apollo.3.5目录

一、常见问题1.1 传感器标定 FAQs https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Calibration_FAQs_cn.md1.2 Cyber RT 问题 https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/CyberRT_FAQs.md1....

2019-04-22 17:03:02 314

ibgd-2.1.0.tar.xz

ibgd-2.1.0.tar.xz

2014-09-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除