自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 C++遍历STL容器时删除导致崩溃问题

今天在使用C++STL容器时,本来以为就删除个元素,这么简单的事情不知道操作多少遍了。结果总是崩溃,一番debug之后发现是在遍历容器时删除元素就会崩溃,然后百度之后发现遇到这个问题的人还不少,这里总结一下问题和解决方案。在展示错误之前,首先明确一下,按照错误方法做,几乎所有的STL容器都会崩溃,看过解决方案之后,就会明白这是STL删除元素的方法造成的。这里就简单的以list做个展示。错误...

2019-05-28 16:48:31 1603 1

转载 Ubuntu更改时区

参见博客:https://blog.csdn.net/zhengchaooo/article/details/79500032

2019-05-09 13:24:49 156

转载 Ubuntu安装miniconda

参见博客:https://blog.csdn.net/ls13552912394/article/details/80257818

2019-05-09 09:09:24 8507

原创 配置ngrok内网穿透以及远程桌面连接

转载博客 https://blog.csdn.net/liushimiao0104/article/details/83025680

2019-05-05 16:35:43 876

转载 在Linux下测试网速

转自博客 https://linux.cn/article-9558-1.html?pr

2019-05-05 08:20:13 2240

原创 插入排序,冒泡排序,快速排序,选择排序,归并排序等C++代码实现

最近在春招,于是整理一下常考的手写算法题,如下#include <iostream>using namespace std;//直接插入排序,时间复杂度O(n*n),空间复杂度O(1) void insert_sort(int a[], int n){ for(int i = 1; i < n; i++) { int temp = a[i]; int ...

2019-03-10 14:21:17 630

原创 strcpy和strnpy源码实现及缺点

源码如下:char * strcpy ( char * destination, const char * source ){ if (destination==NULL || source ==NULL) { throw "pointer error"; } char * pTemp = destination; while((*destination++ = *sourc...

2019-02-28 09:51:36 939

原创 Linux下使用crontab定时激活conda虚拟python环境

今天需要弄一个linux下的定时任务,考虑到用crontab去写,但是遇到很多问题,主要就是怎样在crontab的定时脚本中激活conda的环境,至于为什么这样做,接下来介绍一下背景我们要运行的python脚本事先用setup打包成了一个包,然后利用click库,将要运行的函数添加到了命令行。也就是说,只要我安装了这个包,只需要运行一条我们规定的shell命令就好了,就不需要额外其他的p...

2019-02-27 17:19:09 4861 3

原创 python mongoDB 操作教程

GitHub链接:https://github.com/lianggx6/Tools/wiki/Python-MongoDB-notebookPython MongoDB 练习mingoDB是什么?参考资料CSDN:https://blog.csdn.net/ltuantuan/article/details/80281079(MongoDB可视化工具Compass的使用)。一个小例子...

2019-02-25 14:54:51 802

原创 python pandas使用简介

GitHub链接:https://github.com/lianggx6/Tools/wiki/Python-pandas-notebookpandas 简介Python pandas是基于Numpy的一种工具。Python的数据结构可大致分如下几种:Series:一位数组,与Numpy中的一维array类似。二者与Python基本的数据结构List也很相近。DataFrame:二维...

2019-02-25 14:53:03 301

原创 python使用setup打包

github链接:https://github.com/lianggx6/Tools/wiki/Python-setup-notebookPython打包笔记目前只在Python2环境中成功过有关setup函数参数解释的博客: http://blog.konghy.cn/2018/04/29/setup-dot-py/http://www.cnblogs.com/cposture/p/9...

2019-02-25 14:50:12 789

原创 VS DLL note

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/VS-DLL-noteVS创建与引用DLL生成DLL文件创建项目在VS中新建项目,选择Win32项目。选择下一步选择类型为DLL,点击完成项目创建完成后,可以发现源文件中有一个dllmain文件,相当于一...

2019-02-24 15:28:37 117

原创 redis 安装使用教程

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/redis-安装使用教程redis安装配置菜鸟教程:http://www.runoob.com/redis/redis-tutorial.html下载解压wget http://download.redis.io/re...

2019-02-24 15:24:10 492

原创 ssh 配置

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/ssh-配置ssh服务配置service sshd start # 启动ssh服务service sshd stop # 关闭ssh服务service sshd restart # 重启ssh服务servic...

2019-02-24 15:21:57 141

转载 svnserve 配置

https://www.cnblogs.com/mymelon/p/5483215.html

2019-02-24 15:17:01 1240

原创 git常用方法

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/git常用方法官方文档https://git-scm.com/book/zh/v2git配置运行前用户名及邮箱的配置:$ git config --global user.name “lianggx”$ git ...

2019-02-24 15:14:45 151

原创 gcc使用笔记(opensuse)

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/gcc使用笔记(opensuse)安装gcc和g++zypper install gcc # 安装gcczypper install gcc-c++ # 安装g++编译与运行编译成功之后直接运行输出文件即可对于...

2019-02-24 15:00:08 832

转载 firewalld 配置

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/boost库配置参见博客:https://blog.csdn.net/period000/article/details/80622265https://blog.csdn.net/xlgen157387/article/d...

2019-02-24 14:56:15 176

原创 boost库编译配置

github原文链接(welcome give me a star on github):https://github.com/lianggx6/Tools/wiki/boost库配置Windows下的配置https://blog.csdn.net/Alex_188/article/details/84325172Linux下的配置https://blog.csdn.net/this_c...

2019-02-24 13:36:28 439

空空如也

空空如也

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

TA关注的人

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