安装前安装依赖包: yum groupinstall "Development tools" yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-dev...
分类:
编程语言 时间:
2015-07-31 15:05:38
阅读次数:
227
引入包commons-fileupload-X.X.jar; 在spring mvc配置文件中增加配置,文件大小限制可根据项目情况调整: <!--?上传文件拦截,设置最大上传文件大小???10M=10*1024*1024(B)=10485760?bytes?-->??
<bean?...
分类:
Web程序 时间:
2015-07-31 15:07:24
阅读次数:
187
Apktool?反编译 1.下载apktools.tar.bz2,将其解压后的目录添加到系统path环境变量中 进入DOS,先输入apktool看反编译工具安装是否成功 2.进行反编译 进入DOS,进入到要反编译的apk文件目录输入命令 apktool??...
分类:
其他好文 时间:
2015-07-31 15:03:55
阅读次数:
169
android5.0 引入了Z轴的概念,于是就有着这种风格,也就是目前比较火的Material Design。 1. android:elevation 设置该组件“浮”起来的高度,to难过过设置该属性可以让该组件呈现3D效果。 2. android:translati...
分类:
移动开发 时间:
2015-07-31 15:05:13
阅读次数:
3573
expr命令将把一个算术表达式作为参数,通常形式如下: ? ? expr [数字] [操作符] [数字] 由于Shell是按字符形式存储变量的,所以用户必须保证参加算术运算的操作数必须为数值。下面是有效的算术操作符: ...
分类:
系统相关 时间:
2015-07-31 15:03:56
阅读次数:
275
class SpockDataIntegrationDownloadHandler(tornado.web.RequestHandler):
def post(self):
selectname = self.get_argument(‘selectname‘)
json_string = {}
"""
将请求参...
分类:
其他好文 时间:
2015-07-31 15:04:45
阅读次数:
590
为大家提供了如何对一个庞大系统各个页面样式进行统一管理的一种解决方案...
分类:
编程语言 时间:
2015-07-31 15:04:06
阅读次数:
243
OOP实例:
// OOP project main.go
package main
import (
"fmt"
)
type people interface {
Count(a int, b int) int
Max(a int, b int) int
}
type abc struct {
}
func (ab abc) Count(a int, b int) int {
...
分类:
其他好文 时间:
2015-07-31 15:02:16
阅读次数:
114
读写操作:
// hello project main.go
/*
从文件中读取数据,然后进行排序,再把排序后的数据写入到新文件中
*/
package main
import (
"fmt" //使用fmt包中的Println()函数
"bufio"
"io"
"os"
"strconv"
"sort"
)
func readValues(infile string) (val...
分类:
其他好文 时间:
2015-07-31 15:04:28
阅读次数:
103
刚开始爬取的时候是用正则表达式实现的,然后爬取了不必要的链接,现在改用goquery实现:
// judgeUrl project judgeUrl.go
package judgeUrl
import (
"strings"
)
func IsUrl(str string) bool {
if strings.HasPrefix(str, "#") || strings.HasPref...
分类:
Web程序 时间:
2015-07-31 15:03:38
阅读次数:
269
GCD Again
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2625 Accepted Submission(s): 1099
Problem Description
Do you have spent so...
分类:
其他好文 时间:
2015-07-31 15:03:23
阅读次数:
124
浅显的总结一下Framework启动大概过程...
分类:
其他好文 时间:
2015-07-31 15:01:34
阅读次数:
162
之前使用MVVM的方式一段时间 + 前天认真的划分设计文档中的模块 = 一种想要强烈的现在使用MVVM的方式...
分类:
其他好文 时间:
2015-07-31 15:04:23
阅读次数:
101
Catch That Cow题目传送:POJ - 3278 - Catch That Cow题解:点击即传送迷宫问题题目传送:POJ - 3984 - 迷宫问题DFS也可以,见另一个题解AC代码(BFS):#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2015-07-31 15:03:41
阅读次数:
136
Solr 文章集成搜索
输入solr的query需要自行做分词,Solr 使用自定义 Query Parser
http://blog.chenlb.com/2010/08/solr-use-custom-query-parser.html...
分类:
其他好文 时间:
2015-07-31 15:01:13
阅读次数:
175
Square
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 21821
Accepted: 7624
Description
Given a set of sticks of various lengths, is it possible to join ...
分类:
其他好文 时间:
2015-07-31 15:01:23
阅读次数:
181