Collections.synchronizedMap:实现了线程安全的特性ConcurrentHashMap:保证了线程安全的同时也兼顾了并发访问的性能,将整个数据集合分成了若干个块import java.util.Collections;import java.util.HashMap;impo...
分类:
其他 时间:
2015-02-01 17:21:50
收藏:
0 评论:
0 赞:
0 阅读:
238
[root@lvm ~]# cat 1.txt 123456789[root@lvm ~]# cat 2.txt maoyuangezhuyuanpoluyujiang[root@lvm ~]# paste 1.txt 2.txt >3.txt #将2个文件粘贴成一个文件[root@lvm ~].....
分类:
其他 时间:
2015-02-01 17:20:40
收藏:
0 评论:
0 赞:
0 阅读:
238
[dehua@teacher ~]$ [ "$(id -u)" -eq "0" ] && echo you are root || echo you must be rootyou must be root[dehua@teacher ~]$ id -u501====================...
分类:
其他 时间:
2015-02-01 17:20:30
收藏:
0 评论:
0 赞:
0 阅读:
260
一====================================================#!/bin/bash#Author wenyu#Edit date 2014 11 21#This shell script will add a userSYSUSER=`cat /etc/...
分类:
其他 时间:
2015-02-01 17:20:20
收藏:
0 评论:
0 赞:
0 阅读:
217
问题描述求1+2+3+...+n的值。输入格式输入包括一个整数n。输出格式输出一行,包括一个整数,表示1+2+3+...+n的值。样例输入4样例输出10样例输入100说明:有一些试题会给出多组样例输入输出以帮助你更好的做题。一般在提交之前所有这些样例都需要测试通过才行,但这不代表这几组样例数据都正确...
分类:
其他 时间:
2015-02-01 17:20:10
收藏:
0 评论:
0 赞:
0 阅读:
142
之前在网上的NGUI本地化教程是基于老版本的了,现在用的3.7版本已经改了很多,以前的本地化教程有点不适用了。1.资源:本地化的txt文本起名叫做Chinese.txt,到resource目录下新建一个Language目录,把txt文件放到Language下。注意:要把txt转码成UTF-8编码,不...
分类:
其他 时间:
2015-02-01 17:19:00
收藏:
0 评论:
0 赞:
0 阅读:
283
前台的datagrid的columns属性如下:(请看红色字体部分)
columns : [ [ { //每列上的属性、名称设置
title : '编号',
field : 'userInfoId',
width : 100,
sortable : true
},{
...
分类:
其他 时间:
2015-02-01 16:15:30
收藏:
0 评论:
0 赞:
0 阅读:
296
Scala语言是在JVM上编程的优秀语言之一,其为并发,表达式和可扩展性而设计。这门语言及其程序库可以让你专注于问题而无需深陷于线程和同步等底层基础结构细节。Scala是一门混合了函数式和面向对象的语言。有以下特性:
1. Scala对函数式编程的支持可以写出非常简洁而有表现力的代码;
2. 对于多线程应用,Scala提供了基于actor的消息传递模型,消除了涉及并发的痛苦问题,利用该模型,可以很方便简单的写出多线程代码,而不用考虑线程之间的数据竞争和加锁释放锁等问题;
3. Scala和java一样...
分类:
其他 时间:
2015-02-01 16:15:20
收藏:
0 评论:
0 赞:
0 阅读:
247
A/B Problem
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
做了A+B Problem,A/B Problem不是什么问题了吧!
输入每组测试样例一行,首先一个号码A,中间一个或多个空格,然后一个符号( / 或者 % ),然后又是空格,后面又是一个号码B,A可能会很长,B是一个int范围的数。
输出输出结果。
...
分类:
其他 时间:
2015-02-01 16:15:10
收藏:
0 评论:
0 赞:
0 阅读:
274
1 index.jsp
2action类
package org.action;
import com.opensymphony.xwork2.ActionSupport;
public class ValidationTestAction extends ActionSupport {
/*...
分类:
其他 时间:
2015-02-01 16:14:50
收藏:
0 评论:
0 赞:
0 阅读:
282
Lucky Tickets. Easy!
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Background
The public transport administration of Ekateri...
分类:
其他 时间:
2015-02-01 16:14:40
收藏:
0 评论:
0 赞:
0 阅读:
282
#include
#include
using namespace std;
void find_seq(int sum, int index, int * value, listint> & seq)
{
if(sum 0 || index 0) return;
if(sum == value[index])
{
printf("%d ", valu...
分类:
其他 时间:
2015-02-01 16:14:20
收藏:
0 评论:
0 赞:
0 阅读:
404
$(function(){
$('#datagrid').datagrid({
url : 'xxx.action', //请求的url
cache: false, //关闭AJAX相应的缓存
...........
});
});
就是加上红色字体那一句话,就OK了,很有用。...
分类:
其他 时间:
2015-02-01 16:14:10
收藏:
0 评论:
0 赞:
0 阅读:
413
题目链接:
3088
题意:一个滑雪胜地包含了n 个地点,m 个滑雪斜坡,k 架雪橇,其中2≤n≤1000、1≤m≤1000、1≤k≤1000。滑雪斜坡和雪橇总是从一个地点到另一个地点:滑雪斜坡是从高地点到低地点,而雪橇刚好相反(注意,雪橇不能下降)。Per 是一个滑雪初学者,他很害怕雪橇,尽管他想滑得尽可能快。现在,他发现他可以选择不同的雪橇和滑雪斜坡。他现在...
分类:
其他 时间:
2015-02-01 16:13:50
收藏:
0 评论:
0 赞:
0 阅读:
254
5. 单例模式
class Marker(val color: String){
//类中的任何代码段作为构造函数的一部分
println("Creating " + this)
override def toString(): String = "marker color " + color
}
object MarkerFactory{
private val markers ...
分类:
其他 时间:
2015-02-01 16:13:30
收藏:
0 评论:
0 赞:
0 阅读:
261
11. curry化
def inject(arr:Array[Int],initial:Int)(operation: (Int,Int) => Int): Int ={
var carryOver = initial
arr.foreach(element => carryOver = operation(carryOver,element))
carryOver
}
val ar...
分类:
其他 时间:
2015-02-01 16:13:00
收藏:
0 评论:
0 赞:
0 阅读:
282
First Missing Positive
Total Accepted: 27915 Total
Submissions: 121776My Submissions
Question
Solution
Given an unsorted integer array, find the first missing positive integer.
F...
分类:
其他 时间:
2015-02-01 16:12:30
收藏:
0 评论:
0 赞:
0 阅读:
337
Jump Game
Total Accepted: 32273 Total
Submissions: 118742My Submissions
Question
Solution
Given an array of non-negative integers, you are initially positioned at the first index ...
分类:
其他 时间:
2015-02-01 16:12:20
收藏:
0 评论:
0 赞:
0 阅读:
250
Length of Last Word
Total Accepted: 32811 Total
Submissions: 113876My Submissions
Question
Solution
Given a string s consists of upper/lower-case alphabets and empty space charact...
分类:
其他 时间:
2015-02-01 16:12:10
收藏:
0 评论:
0 赞:
0 阅读:
154
简介
在csdn上发现了一个http://blog.csdn.net/maotoula/article/details/7680716 ,上面有分析对于一个车牌的识别过程。于是跟着这个流程分析,自己利用opencv
来代码实现了一遍。
[编辑]图像预处理
首先拿到如下的车牌照片:
接着对它进行一些预处理,这里做的是简单的将它灰阶二值化:
uchar* p...
分类:
其他 时间:
2015-02-01 16:11:20
收藏:
0 评论:
0 赞:
0 阅读:
541