其他
转自:http://www.cnblogs.com/end/archive/2012/02/21/2360965.html
1.作用
Linux系统中grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户。
2.格式
gre...
新建的是helloworld工程模板,生成elf文件后右键helloworld工程,选择Run As----Run Configuration,出现的错误是:
An internal error occurred during:Launching hello_world_0 Debug .
解决办法:
1. project----property,选择Run/Debug Sett...
一、response
ServletResponse -- 最基本的response对象,提供了一个响应对象应该具有的最基本的功能
|
|-HttpServletResponse 针对于HTTP协议进行了增强提供了很多和HTTP协议相关的属性和方法
1.向浏览器输出一段数据--乱码问题
response.getOutputStream();
response.getWriter()...
Return a shortest prefix of word that is not a prefix of any word in the list
e.g.
word: cat, it has 4 prefixes: “”, “c”, “ca”, “cat”
list: alpha, beta, cotton, delta, camera
Result is “cat”...
1.前言
【linux内核说明】
通常情况下,I2C设备由内核驱动控制,但是某些情况下I2C设备也可由用户空间控制。如果在用户空间控制I2C设备,需要访问/dev目录中所提供的接口,在使用I2C设备之前必须要载入i2c-dev设备。
每一个已经注册的IC设备都有一个编号,该编号从0开始计算。可以查看/sys/class/i2c-dev目录以获得I2C适配器的信息,或者使用i2cdetect工...
Magic Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1404 Accepted Submission(s): 589
Problem Description
There are many...
没事闲的蛋疼,升级了chrome到33 。结果发现不好用了。
1,底部显示url的居然不见了。
2,修改cookie的查件部好使了。
3,临时解决:没有办法,要开发调试东西。只能找一个v32的绿色版本。
下载地址:
http://www.portablesoft.org/google-chrome/
非常的不爽呢。不知道下一个版本会不...
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ ...
在上一篇博文中,我们只是稍加对libevent进行了学习,自己私下感觉好像好的多东西都没有涉及,于是在这篇中我们就来真正地学习下libevent的一些API用法,废话不说,直接上代码,这段代码也是别人的代码,但是它很有针对性,所以在此列举出,稍后会有针对性地修改,代码如下:
#ifndef __ECHO_SERVER__H
#define __ECHO_SERVER__H
#include...