会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
F
首页
新随笔
管理
上一页
1
···
61
62
63
64
65
66
67
68
下一页
2018年10月14日
python3.7 安装pyqt5
摘要: pip install pyqt5
阅读全文
posted @ 2018-10-14 15:50 anobscureretreat
阅读(587)
评论(0)
推荐(0)
编辑
字符串排序,返回符合格式的元组数据
摘要: 对字符串“2kd4-1124*2|^2sdAmZ%fkMcv”排序,并返回符合要求格式的元组数据。 排序规则:按照ASCII码由大到小排序; 返回数据格式:((最大字符,最小字符),(次大字符,次小字符),,,)
阅读全文
posted @ 2018-10-14 15:40 anobscureretreat
阅读(188)
评论(0)
推荐(0)
编辑
2018年10月13日
Ubuntu 定时任务
摘要: 一.cron相关命令 #重载cron sudo service cron reload #查看cron状态 service cron status #查看cron pid pidof cron #获取cron进程 pgrep cron #启动cron服务 service cron start #重启
阅读全文
posted @ 2018-10-13 00:42 anobscureretreat
阅读(1571)
评论(0)
推荐(0)
编辑
2018年10月12日
Ubuntu 14.04 定时任务
摘要: 如何在Ubuntu上启动一个定时任务,使得可以定时删除机器上的日志 首先, #查看cron状态 service cron status 如果提示没有安装 #安装cron服务 apt-get install cron 如果提示正在运行 #编辑当前用户的计划任务文件crontab -e 弹出编辑界面,如
阅读全文
posted @ 2018-10-12 21:53 anobscureretreat
阅读(486)
评论(0)
推荐(0)
编辑
ubuntu 14.04 server 能ping通,但不能ssh
摘要: ssh是一种安全协议,主要用于给远程登录会话数据进行加密,保证数据传输的安全,我们可以很方便的用ssh链接工具连接远程服务器进行相关操作,但是在享受这种方便的同时我们需要进行一些配置。 首先我们需要在远程主机上安装SSH服务,执行sudo apt-get install openssh-server
阅读全文
posted @ 2018-10-12 15:40 anobscureretreat
阅读(1320)
评论(0)
推荐(0)
编辑
2018年10月11日
gpg: no valid OpenPGP data found. 解决办法
摘要: 在Ubuntu14.04 server(amd64)上面安装ros,运行命令 生成软件包授权密钥时,报出这个错误,解决方法是,分成两步进行
阅读全文
posted @ 2018-10-11 14:17 anobscureretreat
阅读(18799)
评论(0)
推荐(0)
编辑
ubuntu 14.04 server(amd64) 安装ros indigo
摘要: 1.添加软件源(添加了正确的软件源,操作系统就知道去哪里下载程序,并根据命令自动安装软件) sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-late
阅读全文
posted @ 2018-10-11 13:46 anobscureretreat
阅读(382)
评论(0)
推荐(0)
编辑
2018年10月10日
jenkins定时构建示例
摘要: 转自:https://blog.csdn.net/abcdocker/article/details/53840522
阅读全文
posted @ 2018-10-10 18:32 anobscureretreat
阅读(454)
评论(0)
推荐(0)
编辑
2018年10月9日
查看 rospkg 变量
摘要: echo $ROS_PACKAGE_PATH
阅读全文
posted @ 2018-10-09 14:12 anobscureretreat
阅读(411)
评论(0)
推荐(0)
编辑
ros rviz 启动指定的rviz 文件
摘要: 例如:rviz -d myname.rviz
阅读全文
posted @ 2018-10-09 13:38 anobscureretreat
阅读(4016)
评论(0)
推荐(0)
编辑
ros 编译指定包
摘要: 一.编译到devel目录在工作空间下(有devel文件夹的那个目录)执行 catkin_make --pkg 包名如果报错,执行catkin_make -DCATKIN_WHITELIST_PACKAGES="包名"二.编译到install文件夹 catkin_make install --pkg
阅读全文
posted @ 2018-10-09 13:35 anobscureretreat
阅读(2963)
评论(2)
推荐(0)
编辑
Couldn't find an AF_INET address for
摘要: #输入内容 按照前几行格式,输入目标主机IP以及hostname source ~/.bashrc
阅读全文
posted @ 2018-10-09 13:33 anobscureretreat
阅读(3006)
评论(0)
推荐(0)
编辑
2018年10月8日
jekins 实现Django项目的自动部署(ubuntu16.04,python2.7,django1.11)
摘要: 1.依赖的插件 2.创建项目 选择自由风格的项目,名字叫做master-build 点击确定,进入配置页面 添加git的地址 点击上图的add,添加秘钥 勾选private key,然后输入Jenkins服务器的私钥 注:秘钥生成方法 点击添加,接着开始配置执行指令, hello.py的内容是 把该
阅读全文
posted @ 2018-10-08 13:58 anobscureretreat
阅读(936)
评论(0)
推荐(1)
编辑
Ubuntu16.04 安装 Django
摘要: 或者手动安装: 链接:https://pan.baidu.com/s/1uQJD-pON7gELoCC2TwYnEw 提取码:flgg
阅读全文
posted @ 2018-10-08 11:04 anobscureretreat
阅读(337)
评论(0)
推荐(0)
编辑
2018年10月7日
小米笔记本 air 12.5寸 支持硬盘参数
摘要: M.2接口 2280规格 单面芯片固态硬盘 PCIE协议
阅读全文
posted @ 2018-10-07 15:47 anobscureretreat
阅读(1797)
评论(0)
推荐(0)
编辑
editplus5激活码
摘要: 转自:https://blog.csdn.net/webfront/article/details/80225398
阅读全文
posted @ 2018-10-07 13:13 anobscureretreat
阅读(684)
评论(0)
推荐(0)
编辑
jmeter UDV
摘要: 即User Defined Variables
阅读全文
posted @ 2018-10-07 12:17 anobscureretreat
阅读(132)
评论(0)
推荐(0)
编辑
2018年10月2日
c语言 快速排序
摘要: #include #include #define BUF_SIZE 10 void display(int array[], int maxlen) { int i; for(i = 0; i array[begin]) // 如果比较的数组元素大于基准数,则交换位置。 { swap(&array[i], &...
阅读全文
posted @ 2018-10-02 18:51 anobscureretreat
阅读(248)
评论(0)
推荐(0)
编辑
2018年9月30日
html禁止文本输入框记录输入记录,单击input出现输入过的记录
摘要: 其实方法很简单,只需要在input文本输入框中加一条autocomplete="off"属性即可。
阅读全文
posted @ 2018-09-30 00:28 anobscureretreat
阅读(1129)
评论(0)
推荐(0)
编辑
2018年9月29日
python pstats ,profile 性能分析
摘要: 输出:
阅读全文
posted @ 2018-09-29 16:29 anobscureretreat
阅读(600)
评论(0)
推荐(0)
编辑
python profile性能分析
摘要: 输出: 其中输出每列的具体解释如下: ●ncalls:表示函数调用的次数; ●tottime:表示指定函数的总的运行时间,除掉函数中调用子函数的运行时间; ●percall:(第一个 percall)等于 tottime/ncalls; ●cumtime:表示该函数及其所有子函数的调用运行的时间,即
阅读全文
posted @ 2018-09-29 16:18 anobscureretreat
阅读(203)
评论(0)
推荐(0)
编辑
python 获取本地语言和编码的代码
摘要: 输出:
阅读全文
posted @ 2018-09-29 14:49 anobscureretreat
阅读(541)
评论(0)
推荐(0)
编辑
python 本地化 local
摘要: locale 模块提供了 C 本地化( localization )函数的接口, 如 Example 8-1 所示. 同时提供相关函数, 实现基于当前 locale 设置的数字, 字符串转换. (而 int , float , 以及 string 模块中的相关转换函数不受 locale 设置的影 响
阅读全文
posted @ 2018-09-29 14:47 anobscureretreat
阅读(1289)
评论(0)
推荐(0)
编辑
python 操作浏览器打开指定网页
摘要: webbrowser 模块提供了一个到系统标准 web 浏览器的接口. 它 提供了一个 open 函数, 接受文件名或 URL 作为参数, 然后在浏览器中打开它. 如果你又一次调用 open 函数, 那么它会尝试在相同的窗口打开新页面 webbrowser 模块提供了一个到系统标准 web 浏览器的
阅读全文
posted @ 2018-09-29 14:35 anobscureretreat
阅读(3601)
评论(0)
推荐(0)
编辑
python 获取字符串中所有数字
摘要: 输出:
阅读全文
posted @ 2018-09-29 10:05 anobscureretreat
阅读(7550)
评论(0)
推荐(0)
编辑
2018年9月28日
ubuntu 16.04 u盘挂载以及卸载
摘要: 1.列出所有磁盘 2.最后一段信息显示的为u盘 3.挂载u盘 4.进入u盘 5.卸载u盘
阅读全文
posted @ 2018-09-28 21:21 anobscureretreat
阅读(2260)
评论(0)
推荐(0)
编辑
jenkins 工作空间的目录
摘要: /usr/share/tomcat7/.jenkins/workspace/
阅读全文
posted @ 2018-09-28 15:13 anobscureretreat
阅读(2421)
评论(0)
推荐(0)
编辑
2018年9月27日
python argparse用法
摘要: 示例一 创建文件prog.py 执行结果: 示例二 创建文件:prog.py 执行结果: 示例三 创建文件:prog.py 执行结果: 示例四 创建文件:prog.py 执行结果: 示例五 创建文件:prog.py 执行结果: 示例六 创建文件:prog.py 执行结果: 示例七 执行结果: 示例八
阅读全文
posted @ 2018-09-27 20:44 anobscureretreat
阅读(275)
评论(0)
推荐(0)
编辑
js 二进制转换为16进制数
摘要: 远程监控
阅读全文
posted @ 2018-09-27 16:56 anobscureretreat
阅读(4485)
评论(0)
推荐(0)
编辑
html 画出矩形,鼠标弹起,矩形消失
摘要: 图片 code <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> .box { border:1px solid black; width: 0px; heig
阅读全文
posted @ 2018-09-27 16:55 anobscureretreat
阅读(408)
评论(0)
推荐(0)
编辑
html 获取鼠标左键事件,滚轮点击事件,右键点击事件
摘要:
阅读全文
posted @ 2018-09-27 16:52 anobscureretreat
阅读(5951)
评论(0)
推荐(0)
编辑
git 生成 公钥
摘要: 生成公钥 查看公钥
阅读全文
posted @ 2018-09-27 15:33 anobscureretreat
阅读(145)
评论(0)
推荐(0)
编辑
2018年9月26日
退出shell 脚本
摘要: 执行结果为
阅读全文
posted @ 2018-09-26 17:56 anobscureretreat
阅读(524)
评论(0)
推荐(0)
编辑
nohup 与 &
摘要: &的意思是在后台运行, 什么意思呢? 意思是说, 当你在执行 ./a.out & 的时候, 即使你用ctrl C, 那么a.out照样运行(因为对SIGINT信号免疫)。 但是要注意, 如果你直接关掉shell后, 那么, a.out进程同样消失。 可见, &的后台并不硬(因为对SIGHUP信号不免
阅读全文
posted @ 2018-09-26 12:37 anobscureretreat
阅读(382)
评论(0)
推荐(0)
编辑
2018年9月22日
python 散列表查找
摘要: class HashTable: def __init__(self, size): self.elem = [None for i in range(size)] self.count = size # def hash(self, key): return key % self.count # def ...
阅读全文
posted @ 2018-09-22 00:20 anobscureretreat
阅读(184)
评论(0)
推荐(0)
编辑
python 二叉排序树
摘要: class BSTNode: def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right class BinarySortTree: def __init__(self...
阅读全文
posted @ 2018-09-22 00:18 anobscureretreat
阅读(939)
评论(0)
推荐(0)
编辑
python 斐波那契查找
摘要: def fibonacci_search(lis, key): # F = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368] low = 0 hi...
阅读全文
posted @ 2018-09-22 00:14 anobscureretreat
阅读(181)
评论(0)
推荐(0)
编辑
python 插值查找
摘要: def binary_search(lis, key): low = 0 high = len(lis) - 1 time = 0 while low lis[mid]: low = mid + 1 else: # print("times: %s" % time) ...
阅读全文
posted @ 2018-09-22 00:12 anobscureretreat
阅读(265)
评论(0)
推荐(0)
编辑
python 二分法查找
摘要: def binary_search(lis, key): low = 0 high = len(lis) - 1 time = 0 while low lis[mid]: low = mid + 1 else: # print("times: %s" % time) ...
阅读全文
posted @ 2018-09-22 00:10 anobscureretreat
阅读(89)
评论(0)
推荐(0)
编辑
python 无序表查找
摘要: def sequential_search(lis, key): for i in range(len(lis)): if(lis[i] == key): return i else: return False LIST = [1, 5, 8, 123, 22, 54, 7, 99, 300, 222...
阅读全文
posted @ 2018-09-22 00:08 anobscureretreat
阅读(248)
评论(0)
推荐(0)
编辑
上一页
1
···
61
62
63
64
65
66
67
68
下一页