04 2019 档案

摘要:重新运行visual studio安装程序,出现添加删除组件的界面,勾选即可。 阅读全文
posted @ 2019-04-29 10:27 jiu~ 阅读(13171) 评论(1) 推荐(1) 编辑
摘要:Visual Studio 2017 introduces built-in support for handling CMake projects. This makes it a lot simpler to develop C++ projects built with CMake witho 阅读全文
posted @ 2019-04-29 10:26 jiu~ 阅读(268) 评论(0) 推荐(0) 编辑
摘要:build:执行代码编译的主机,正常的话就是你的主机系统。这个参数一般由config.guess来猜就可以。当然自己指定也可以。host:编译出来的二进制程序所执行的主机,因为绝大多数是如果本机编译,本机执行。所以这个值就等于build。只有交叉编译的时候(也就是本机编译,其他系统机器执行)才会bu 阅读全文
posted @ 2019-04-27 13:56 jiu~ 阅读(2040) 评论(0) 推荐(0) 编辑
摘要:1. 下载gdb源码,7.12版本,下载地址:ftp://ftp.gnu.org/gnu/gdb。2. 编译gdb:0> cd gdb-7.121> mkdir __install2> ./configure --target=arm-linux --enable-shared --prefix=\ 阅读全文
posted @ 2019-04-27 13:54 jiu~ 阅读(1647) 评论(0) 推荐(0) 编辑
摘要:(一)安装NFS服务器1.1-安装Ubuntu nfs服务器端: sudo apt-get install nfs-kernel-server 1.2-安装nfs的客户端: sudo apt-get install nfs-common​ (在安装nsf-kernel-server的时候,也会安装n 阅读全文
posted @ 2019-04-24 08:23 jiu~ 阅读(662) 评论(0) 推荐(0) 编辑
摘要:整理了Ubuntu Linux操作系统下apt-get命令的详细说明,分享给大家。常用的APT命令参数:apt-cache search package 搜索包apt-cache show package 获取包的相关信息,如说明、大小、版本等sudo apt-get install package 阅读全文
posted @ 2019-04-24 07:54 jiu~ 阅读(20567) 评论(0) 推荐(0) 编辑
摘要:修改cpplint.py:1. main()中注释掉 # sys.stderr = codecs.StreamReaderWriter(sys.stderr, # codecs.getreader('utf8'), # codecs.getwriter('utf8'), # 'replace')2. 阅读全文
posted @ 2019-04-24 07:48 jiu~ 阅读(866) 评论(0) 推荐(0) 编辑
摘要:The following command in a job script: Seems to be causing the following ci lint error: The colon (:) makes the line be interpeted as yaml map. The so 阅读全文
posted @ 2019-04-24 07:45 jiu~ 阅读(2000) 评论(0) 推荐(0) 编辑
摘要:This article introduces git pre-push hook. Problem In Lean project, we use a modified version of Google’s C++ style checker. I want to automatically r 阅读全文
posted @ 2019-04-24 07:41 jiu~ 阅读(1475) 评论(0) 推荐(0) 编辑
摘要:【转自:http://dockone.io/article/8174】 在构建Docker容器时,我们应尽可能减小镜像的大小。使用共享层的镜像尺寸越小,其传输和部署速度越快。不过在每个RUN语句都会创建一个新层的情况下,如果我们需要获取镜像完成前的中间产物,又如何控制其大小呢?你可能已经注意到市面上 阅读全文
posted @ 2019-04-24 07:32 jiu~ 阅读(1672) 评论(0) 推荐(0) 编辑
摘要:import platform print platform.python_version() 阅读全文
posted @ 2019-04-24 07:22 jiu~ 阅读(4486) 评论(0) 推荐(0) 编辑
摘要:1. echo的参数中, -e表示开启转义, /c表示不换行: 2. -n不换行: 阅读全文
posted @ 2019-04-24 07:20 jiu~ 阅读(4766) 评论(0) 推荐(1) 编辑
摘要:echo "2014年7月21日" | tr -cd "[0-9]" 这样就可以提取出2014721 阅读全文
posted @ 2019-04-24 07:17 jiu~ 阅读(15966) 评论(0) 推荐(2) 编辑
摘要:eg: 需要将模糊搜索词用引号括起来: 阅读全文
posted @ 2019-04-24 07:16 jiu~ 阅读(2154) 评论(0) 推荐(0) 编辑
摘要:这里写下gdbserver的用法: 两台机子,宿主机A和目标机B。 step1: 我们在B上安装gdbserver,在A上编译可执行程序a.out,把a.out拷贝到B上面去。 step2: 在A上打开server服务:gdbserver ip(A):port a.out;在B上用gdb本地调试,g 阅读全文
posted @ 2019-04-15 22:57 jiu~ 阅读(824) 评论(0) 推荐(0) 编辑
摘要:主要注意别手误,每个if else情况写全。 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x 阅读全文
posted @ 2019-04-13 23:33 jiu~ 阅读(155) 评论(0) 推荐(0) 编辑
摘要:solution1: 1 class Solution { 2 public: 3 struct pair{ 4 std::vector<int>* v; 5 int i; 6 7 bool operator < (const pair &a) const{ 8 return (*v)[i] > ( 阅读全文
posted @ 2019-04-13 23:26 jiu~ 阅读(167) 评论(0) 推荐(0) 编辑
摘要:我们常常在代码封板时,使用git 创建一个tag ,这样一个不可修改的历史代码版本就像被我们封存起来一样,不论是运维发布拉取,或者以后的代码版本管理,都是十分方便的 git的tag功能 git 下打标签其实有2种情况 轻量级的:它其实是一个独立的分支,或者说是一个不可变的分支.指向特定提交对象的引用 阅读全文
posted @ 2019-04-12 18:36 jiu~ 阅读(12129) 评论(0) 推荐(3) 编辑
摘要:import os import shutil os.remove(path) #删除文件 os.removedirs(path) #删除空文件夹 shutil.rmtree(path) #递归删除文件夹 阅读全文
posted @ 2019-04-09 17:17 jiu~ 阅读(8530) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示