安装 ntp 在 /etc/ntp.conf 中配置 [plain] view plain copy restrict 127.0.0.1 //给予本机所有权限 restrict -6 ::1 //不大明白,针对IPV6吗? restrict 192.168.1.0 mask 255.255.255 ...
分类:
系统相关 时间:
2017-09-04 01:02:45
阅读次数:
273
为防止恶意脚本的执行,PowerShell 中设计了一个叫做执行策略(Execution Policy)的东西(我更倾向于把它叫做脚本执行策略)。我们可以在不同的应用场景中设置不同的策略来防止恶意脚本的执行。本文主要是解释这些执行策略,因为笔者在学习的时候发现它们并不是那么清晰易懂。PowerShe ...
分类:
系统相关 时间:
2017-09-01 09:49:42
阅读次数:
369
当所使用的ubuntu版本过期,源不再更新。再使用 apt-get 获取软件将会找不到源。 实际上ubuntu是有老版本源的,这个问题在ask ubuntu已有高票答案。 支持的老版本在old-releases.ubuntu.com上有列表。更新源的过程如下: 通过命令 lab_release 查看 ...
分类:
系统相关 时间:
2017-08-23 13:33:07
阅读次数:
274
.directive('expander', function() { /* expander() restrict: E,A,C,M(元素,属性,样式,注释) transclude:true替换 compile(编译)和link(连接) */ var scope ={title : '=expan... ...
分类:
其他好文 时间:
2017-08-11 13:38:23
阅读次数:
160
Curling 2.0 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 21723 Accepted: 8842 Description On Planet MM-21, after their Olympic games thi ...
分类:
其他好文 时间:
2017-07-29 20:52:08
阅读次数:
218
Description In the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of t ...
分类:
其他好文 时间:
2017-07-27 10:36:50
阅读次数:
134
摘要 在使用setupfactory打包之后,想让程序默认以管理员身份运行,因为涉及到创建文件删除文件的操作,如果权限比较低的话,会出现没有权限操作的bug。 解决办法 在项目中找到app.manifest清单文件 修改requestedExecutionLevel 的属性level为require ...
先上效果图: 再看看代码,非常简单: 最后解释一下输出函数printf()的语法: 1、这个函数需要引用stdio.h头文件 2、语法说明: int __cdecl printf(const char * __restrict__ _Format,...); 参数Format规定输出格式,该参数后面 ...
分类:
编程语言 时间:
2017-07-24 18:53:44
阅读次数:
153
Ubuntu安装ROS教程 1、配置Ubuntu的软件源 配置Ubuntu要求允许接受restricted、universe和multiverse的软件源,可以根据下面的链接配置: https://help.ubuntu.com/community/Repositories/Ubuntu 配置成如下 ...
分类:
系统相关 时间:
2017-07-23 11:28:27
阅读次数:
173
一、服务器端配置1.安装所需软件包yum -y install ntp ntpdate 2.编辑NTP主配置文件,修改如下:vim /etc/ntp.conf#允许192.168.244.0网段同步restrict 192.168.244.0 mask 255.255.255.0 nomodify ...
分类:
其他好文 时间:
2017-07-20 17:20:19
阅读次数:
126