add by zhj: 《RESTful Web Services
Cookbook》这本书详细介绍了RESTFUL
API的设计。原文:http://www.ruanyifeng.com/blog/2014/05/restful_api.html 作者:阮一峰
网络应用程序,分为前端和后端两个部分...
Given an array of integers, find two numbers such
that they add up to a specific target number.The function twoSum should return
indices of the two nu...
分类:
其他好文 时间:
2014-05-26 19:50:39
阅读次数:
314
add by
zhj:还没来得及看,有空再细看原文:https://ruby-china.org/topics/19389cache是提高应用性能重要的一个环节,写篇文章总结一下用过的各种对于动态内容的cache。文章以Nginx,Rails,Mysql,Redis作为例子,换成其他web服务器,语...
分类:
Web程序 时间:
2014-05-26 19:43:13
阅读次数:
421
0. 新建一个等待测试的业务类,并添加待测试的方法: a.
新建一个名为Junit2的android应用工程; b.
在android工程中新建一个名为Demo的类,并添加save和add两个方法,代码如下:package com.example.junit2;public
clas...
分类:
移动开发 时间:
2014-05-25 22:52:40
阅读次数:
403
You are given two linked lists representing two non-negative numbers. The digits are
stored in reverse order and each of their nodes contain a single digit. Add the two numbers
and return i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
人们常说“细节决定成败”。
编码工作中,同样需要关注细节。
本文将给出3个小实例来说明编码中关注细节的重要性,同时给出作者对如何注意编码细节的一点见解(说的不对,请指正)。
例1 这个问题如此地显而易见,竟然没有被发现。
List numList = new List();
numList.Add(3);
numList.Add(1);
numList.Add(4);
numList.Ad...
分类:
其他好文 时间:
2014-05-25 21:14:17
阅读次数:
223
此程序要注意一下几点:1.dos1号功能——带回显的键盘输入,自动存入al2.dos7号功能——不带回显的键盘输入,自动存入al,若要在屏幕中显示要调用DOS2号功能3.将输入的多个二进制数转换为ASCII码input:
mov ah,1 int 21h add ...
分类:
其他好文 时间:
2014-05-25 19:48:43
阅读次数:
257
net user heibai lovechina /add
加一个heibai的用户密码为lovechina net localgroup Administrators heibai /add
把他加入Administrator组net start telnet ...
说明:由于图形化界面方法(如Add/Remove... 和Synaptic Package
Manageer)比较简单,所以这里主要总结在终端通过命令行方式进行的软件包安装、卸载和删除的方法。一、Ubuntu中软件安装方法1、APT方式(1)普通安装:apt-get
install softname...
分类:
其他好文 时间:
2014-05-25 12:29:55
阅读次数:
256
Irange =
(Microsoft.Office.Interop.Excel.Range)worksheet.get_Range("I1",
"I1").get_Resize(100, 1);//获取一整列I,行数为100Irange.Validation.Add(Microsoft.Offic...
分类:
其他好文 时间:
2014-05-25 02:21:42
阅读次数:
293