在介绍内容之前,我解释下排版问题,第一分割线是基本介绍第二分割线是细节和扩展内容第三分割线是对细节内容的详细讲解以及实例前面粗略介绍的后面会有详解bash的重要特性:变量bash变量的类别:本地变量:只对当前shell进程有效的变量:对其他shell进程无效,包当前shell进程..
分类:
其他好文 时间:
2015-04-17 18:33:36
阅读次数:
131
内网有一台wind7系统的,共享文件夹。员工访问时,提示解决方法如下:1.先删除当前会话在cmd里面运行以下命令netsession/delete/y2.设置组策略开始→运行”,输入“gpedit.msc”打开组策略编辑器窗口,依次定位到“计算机配置-windows设置-安全设置-本地策略-安全选项-交互式登..
分类:
其他好文 时间:
2015-04-17 18:30:25
阅读次数:
133
4月3日,刚子拿到大神F1极速版媒体体验机,并没有开始着手进行评测,而是想通过时间来考验下大神f1极速版宣称2GB运存的牛x之处。今天刚好是交还体验机的日子,发完快递就沉下来为大家分享一下我对大神F1极速版的几点认识。颜值不是关键,握感才是亮点作为699价位的智能手机,国..
分类:
其他好文 时间:
2015-04-17 18:31:03
阅读次数:
194
4月15日,乐视在北京召开主题为“触摸未来”的LePar超级合伙人峰会。据了解,这是乐视推出LePar超级合伙人项目计划以来的首个峰会,在这个峰会上,乐视也向合伙人承诺未来3年乐视控股公司将与LePar分享5%的股权,根据目前乐视控股公司的规划,预计在2022年,全部LePar所能分享..
分类:
其他好文 时间:
2015-04-17 18:31:10
阅读次数:
144
一、初步摸索对于Saltstack的初步了解知道相比puppet配置简单些,实现自动化运维,减少大批量操作的失误。二、安装及测试1、初期做实验,准备一台master作为服务器端,一台作为客户端设置好机器的ip地址root@master~]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainloc..
分类:
其他好文 时间:
2015-04-17 18:30:39
阅读次数:
140
访问Nginx出现状态码为403forbidden原因及故障模拟1)nginx配置文件里不配置默认首页参数或者首页文件在站点目录下没有indexindex.phpindex.htmlindex.htm;问题模拟示例:[root@wwwextra]#catwww.conf
#wwwvirtualhostbyoldboy
server{
listen80;
server_namewww.etiantian.org;..
分类:
其他好文 时间:
2015-04-17 18:28:38
阅读次数:
235
1.StringUtils.isBlank(CharSequencecs)booleanorg.apache.commons.lang3.StringUtils.isBlank(CharSequencecs)ChecksifaCharSequenceiswhitespace,empty("")ornull.StringUtils.isBlank(null)=trueStringUtils.isBlank("")=trueStringUtils.isBlank("")=trueStringUtils.isBla..
分类:
其他好文 时间:
2015-04-17 18:30:07
阅读次数:
115
环境:ubuntu14.04程序:docker1.6下载镜像报错:#dockerpullcentos:centos5PullingrepositorycentosFATA[0004]Gethttps://index.docker.io/v1/repositories/library/centos/p_w_picpaths:x509:certificatehasexpiredorisnotyetvalid这种错误,一般都是本地系统时间错误导致报..
分类:
其他好文 时间:
2015-04-17 18:29:07
阅读次数:
168
有一天,我在开心的写代码,在jetty上做了类似302的重定向,不过是重定向到一个https的页面上,但是这个https页面直接访问是正常的,但是由jetty做重定向以后就不对了,显示错误:
Unauthorized
This server could not verify that you are authorized to access the document requested. ...
分类:
其他好文 时间:
2015-04-17 18:26:55
阅读次数:
272
problem:
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less th...
分类:
其他好文 时间:
2015-04-17 18:28:13
阅读次数:
142
Closest Common Ancestors
Time Limit: 2000MS
Memory Limit: 10000K
Total Submissions: 16671
Accepted: 5319
Description
Write a program that takes as input a rooted tree a...
分类:
其他好文 时间:
2015-04-17 18:27:02
阅读次数:
120
截至2015年4月,IETF共发布了2份关于CoAP协议的RFC文档,尚有5份文档处于草稿状态。...
分类:
其他好文 时间:
2015-04-17 18:26:30
阅读次数:
210
#import "ViewController.h"
@interface
ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super
viewDidLoad];
// 1.UIBu...
分类:
其他好文 时间:
2015-04-17 18:25:47
阅读次数:
140
1. malloc()函数
1.1 malloc的全称是memory allocation,中文叫动态内存分配。
原型:extern void *malloc(unsigned int num_bytes);
说明:分配长度为num_bytes字节的内存块。如果分配成功则返回指向被分配内存的指针,分配失败返回空指针NULL。当内存不再使用时,应使用free()函数将内存块释放。
1....
分类:
其他好文 时间:
2015-04-17 18:24:20
阅读次数:
190
题目大意:求最小圆覆盖
随机增量法裸题
注意多输出几位小数不然过不去= =
#include
#include
#include
#include
#include
#include
#define M 100100
#define EPS 1e-7
using namespace std;
struct Point{
double x,y;
Point() {}
Poin...
分类:
其他好文 时间:
2015-04-17 18:25:22
阅读次数:
160
Substring
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of ...
分类:
其他好文 时间:
2015-04-17 18:24:31
阅读次数:
128
MIT JOS lab4
写在前面的碎碎念~ :
经历了LAB 3的洗礼,死磕到了lab 4. 这里还是首先向各位为JOS 实验做过笔记,写过博客,把自己实验代码托管到JOS上面的先行者们致敬! 如果没有这么好的开源环境, 这么好的东西学不来. 珍惜, 不用嘴. Doing is better than saying!
-----------...
分类:
其他好文 时间:
2015-04-17 18:21:40
阅读次数:
434