作者:zhanhailiang 日期:2014.09.28
在Linux下可以使用tail -f工具实时查看输出的日志。最近切换到本地Windows开发环境,顿时有点不爽。百度了下,终于找到tail的Windows的实现版本。
1. 下载tail,解压后将tail.exe复制到Path路径下,以笔者为例,C:\Windows\System32;
2. 测试如下:
Microso...
meta主要为分HTTP标头信息(HTTP-EQUIV)和页面描述信息(NAME)。标头信息包括文档类型、字符集、语言等浏览器正确显示网页的信息及处理动作;网页描述如内容的关键字、摘要、作者和定义robots行为等,为搜索引擎索引提供信息。meta标签在head中定义,主要参数如下:http-equiv:将..
分类:
Web程序 时间:
2014-09-28 14:46:02
阅读次数:
195
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-09-28 14:33:56
阅读次数:
178
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Frameset//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title&..
分类:
其他好文 时间:
2014-09-28 02:16:31
阅读次数:
189
1. Basic Regular Expression a. "^" matching the head of a line. "^" must be the first character in a regular expression ,else it only a common ch...
分类:
其他好文 时间:
2014-09-27 19:08:30
阅读次数:
160
1 int binSearch(const vector &tail, int len, int key)// 2 { 3 int left = 0, right = len - 1; 4 int mid; 5 6 while(left > 1); 9 i...
分类:
其他好文 时间:
2014-09-27 04:32:09
阅读次数:
230
//多线程链表添加删除例子(使用条件变量实现互斥): #include #include #include #include #include typedef struct _list_head list_head;struct _list_head{ list_head *next; ...
分类:
其他好文 时间:
2014-09-27 01:26:19
阅读次数:
214
1 nginx过滤模块简介
过滤(filter)模块是过滤响应头和内容的模块,可以对回复的头和内容进行处理。它的处理时间在获取回复内容之后,
向用户发送响应之前。它的处理过程分为两个阶段,过滤HTTP回复的头部和主体,在这两个阶段可以分别对头部和主体
进行修改。
2 过滤模块执行顺序
2.1 ngx_http_output_(head, body)_filter_pt
先看一下ng...
分类:
其他好文 时间:
2014-09-26 23:56:18
阅读次数:
353
<!DOCTYPEhtml><html><head><metaname="viewport"content="width=device-width"/><title>KoTest</title></head><body><h1>方法1</h1><uldata-bind="foreach:fruits"><lidata-bind="click:$root.clickHdr..
分类:
其他好文 时间:
2014-09-26 20:02:59
阅读次数:
180
主要的思想类似中序遍历,先构建左子树,再构建当前节点,并构建右子树
TreeNode *sortedListToBST(ListNode *head) {
int count = 0;
ListNode * cur = head;
while (cur)
{
count++;
cu...
分类:
其他好文 时间:
2014-09-26 11:41:08
阅读次数:
230