- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 Odps使用过程中碰到的问题。
1.RequestId=201603311944245892b70a006de4d2, ErrorCode=InvalidPartitionSpec, ErrorMessage=The specified partitionspec is not valid.at com.aliyun.odps.tunnel.TableTunnel$UploadSession.initiate(TableTu
2016-03-31 19:46:38 5552
转载 使用Fiddler调试你的移动应用后台api接口
转自:http://jingyan.baidu.com/article/c1465413a1e2b00bfdfc4c71.htmlFiddler是一款非常流行并且实用的http抓包工具,它的原理是在本机开启了一个http的代理服务器,然后它会转发所有的http请求和响应,因此,它比一般的firebug或者是chrome自带的抓包工具要好用的多。不仅如此,它还可以支持请求重放等一
2016-03-28 20:47:52 550
转载 mapreduce工作原理
工作原理MapReduce执行流程右图是论文里给出的流程图。一切都是从最上方的user program开始的,user program链接了MapReduce库,实现了最基本的Map函数和Reduce函数。图中执行的顺序都用数字标记了。1.MapReduce库先把user program的输入文件划分为M份(M为用户定义),每一份通常有16MB到64MB,如图左方所示分成了split0
2016-03-23 23:23:50 2112
原创 找出大数组array中第k大的元素(要求时间复杂度O(n))
具体的代码实现:import java.util.Stack;/** * @author yixin.fso.wuwh * @date createTime:2016年3月6日 上午12:23:14 */public class KthBiggest { public static int find(int[]array, int k) { //定义一个比k大1长度的临时数组
2016-03-06 14:11:45 2352
原创 统计java代码文件的代码行数(空行、注释不能计数)
Java文件中会有两种注释方式:// /*...*/所以代码要能去除以上两种注释风格的代码,同时不能包含空行...具体代码实现如下:/** * @author wuwh * @return result=codeLineNumber of javaFile * @Param javaFile is target file need stating. *
2016-03-06 00:16:13 2217
原创 nginx 代理服务器location的配置规则
1. A regular expression is preceded with the tilde (~) for case-sensitive matching, or the tilde-asterisk (~*) for case-insensitive matching2.
2016-03-06 00:05:13 740
原创 nginx做负载均衡,怎么在有宕机情况出现时保证网站的响应速度
基础知识:1. nginx做负载均衡时,默认每台服务器的权重相等。2. 如果要给某台服务器加权重,则通过下面的方式 upstream www.wu.com{ server localhost:8084 weight=3; server 10.10.105.149:8080 weight=1; }3. 健康监测机制: nginx会根据预先设置的权重转发请求,
2016-03-05 11:01:24 6435
原创 Java递归实现字符串的倒序输出
public class StringUtil { public static StringBuilder reverse(StringBuilder target,StringBuilder result,int index) { if (index<target.length()) { result = reverse(target, result, index+1).appen
2016-03-04 17:56:34 4199 2
原创 Concepts about Data Structure
The use of ADT divides the programming task into two steps: 1. Implement the operations of the ADT,choose a particular data structure to represent the ADT, and write thefunctions to implem
2016-03-04 17:26:20 306
转载 nginx配置文件nginx.conf解读
server { listen 8080; root /data/up1; location / { }}This will be a simple server that listens on the port 8080 (previously, the listen directive has not been specified since
2016-03-03 19:07:09 397
原创 2016年3月面试碰到的问题
1. 用递归方式实现字符串的逆序输出。2. linux下,把一个文件夹下(文件夹下可能还能还有文件夹)所有文件内容中的abc替换成cba (滴滴)
2016-03-03 17:57:45 398
原创 nginx的常用命令
Starting, Stopping, and Reloading ConfigurationTo start nginx, run the executable file. Once nginx is started, it can be controlled by invoking the executable with the -s parameter. Use the followin
2016-03-02 18:50:36 416
原创 win7系统下安装、配置、测试nginx
1.nginx.org 下载nginx的稳定版zip包。2.解压至本地目录如D:\nginx(主)。功能:1. cd到D:\nginx目录2. 启动nginx: nginx -c conf\nginx.conf3. nginx.conf 关键配置文件如下: upstream www.wu.com{ server localhost:8090 weight=3;
2016-03-02 18:49:22 848
原创 Spring加载主配置文件
5.14.4 Convenient ApplicationContext instantiation for web applicationsYou can create ApplicationContext instances declaratively by using, for example, a ContextLoader. Of course you can als
2016-03-01 11:02:53 780
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人