Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:
其他好文 时间:
2015-01-18 16:56:21
阅读次数:
150
使用工具:TOMCAT 7.0.52、IntelliJ IDEA 13.0.2、JSF 2.0+、SqlServer、jtds-1.2.5.jar搞了好久都没成功,开始使用注解引入DataSource,可是一直不成功,后来使用lookup方式,写了一个本地主类(包含main方法)测试,也是不成功,艹...
分类:
其他好文 时间:
2015-01-18 16:56:27
阅读次数:
198
一、HTTP数据的压缩 在http协议中当content-encoding对应的值为gzip,deflate,x-gzip,x-deflate时,数据是经过了压缩之后再进行传输的。有些时候我们当我们传输的数据比较大的时候,可以采取这种方式,从而提高数据的传输速度。在web service中,当某个....
分类:
其他好文 时间:
2015-01-18 16:57:07
阅读次数:
234
最近由于工作需要,写了一个重启无线网卡的批处理。首先说一下我的思路:1、ping网关(默认选项,网关为192.168.1.1)两次,如果成功,则批处理结束2、如果不成功,则在第二次,重启无线网卡为了达到以上目的。我需要一个可以在DOS命令中进行启用、禁用、重新启动、更新、删除..
分类:
其他好文 时间:
2015-01-18 15:51:33
阅读次数:
191
1、打开Powershell,输入Ntdsutil.exe;输入“help”,管理NTDS角色所有者令牌,使用“Roles”命令;输入“Roles”;2、输入“help”获取帮助;连接到一个特定的实例,使用“Connections”;输入“Connections”;3、输入“help”获取帮助,连接到服务器,使用“Connecttoserve..
分类:
其他好文 时间:
2015-01-18 15:53:12
阅读次数:
642
//
//NotificationCenter.h
//Demo
//
//CreatedbyQzydeMacon15/1/17.
//Copyright(c)2015年Qzy.Allrightsreserved.
//
#import<Foundation/Foundation.h>
@interfaceNotification:NSObject
@property(retain,nonatomic,readwrite)NSDictionary*userInfo;
@property(a..
分类:
其他好文 时间:
2015-01-18 15:50:29
阅读次数:
189
Question:Givenastringoflowercasecharacters,reorderthemsuchthatthesamecharactersareatleastdistancedfromeachother.Input:{a,b,b},distance=2Output:{b,a,b}http://leetcode.com/2010/05/here-is-another-google-phone-interview.htmlpublicvoidreorder(int[]A,intd)
{
//S..
分类:
其他好文 时间:
2015-01-18 15:51:15
阅读次数:
170
产品的好与坏,不是开发者说了算的,真正有权利做评价的是产品的用户。所以做产品要时时刻刻谨记一条根本原则:用户至上。
以下是围绕这个根本原则具体描述。
一:产品功能选择
在设计产品时,可能产品经理有许多的构想,产品能干这个,能干那个。但是总要有个侧重点,优先实现那些功能,那些功能是最基本的。这里有几条这样的原则:
(1)刚性需求
就是这个需求是必要的,用户肯定会用到的。...
分类:
其他好文 时间:
2015-01-18 15:47:46
阅读次数:
181
光棍的yy
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述
yy经常遇见一个奇怪的事情,每当他看时间的时候总会看见11:11,这个很纠结啊。
现在给你m个1,你可以把2个1组合成一个2,这样就不是光棍了,问这样的组合有多少种??
例如(111 可以拆分为 111 12 21 有三种)
输入第一行输入一个n表示有...
分类:
其他好文 时间:
2015-01-18 15:48:14
阅读次数:
137
标题:大臣的旅费
很久以前,T王国空前繁荣。为了更好地管理国家,王国修建了大量的快速路,用于连接首都和王国内的各大城市。
为节省经费,T国的大臣们经过思考,制定了一套优秀的修建方案,使得任何一个大城市都能从首都直接或者通过其他大城市间接到达。同时,如果不重复经过大城市,从首都到达每个大城市的方案都是唯一的。
J是T国重要大臣,他巡查于各大城市之间,体察民情。所以,从一...
分类:
其他好文 时间:
2015-01-18 15:48:18
阅读次数:
169
package com.latrobe.spark
import org.apache.spark.{SparkContext, SparkConf}
/**
* Created by spark on 15-1-18.
* 计算出每个key对应的value的数量
*/
object CountByKey {
def main(args: Array[String]) {
v...
分类:
其他好文 时间:
2015-01-18 15:48:22
阅读次数:
251
如果有如下错误:
fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
将以下文件:
\jdk\include\jni.h
\jdk\include\win32\jawt_md.h
\jdk\include\win32\jni_md.h
复制到VS的安装目录...
分类:
其他好文 时间:
2015-01-18 15:48:01
阅读次数:
417
http://poj.org/problem?id=1611
简单并查集,建设学号是0 的学生已经是感染者,问与他同集合的人有多少个。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
...
分类:
其他好文 时间:
2015-01-18 15:47:28
阅读次数:
121
这周在公司分享会上分享了《Finding the Right Consumer: Optimizing for Conversion in Display Advertising Campaigns》,下面贴出分享的主要内容。
文章参考于:http://www.cs.cmu.edu/~yandongl/papers/wsdm2012.pdf...
分类:
其他好文 时间:
2015-01-18 15:47:28
阅读次数:
185
??
当为链接的不同状态设置样式时,请按照以下次序规则:
a:hover 必须位于 a:link 和 a:visited 之后a:active 必须位于 a:hover 之后
文本修饰
text-decoration 属性大多用于去掉链接中的下划线:
实例
a:link {text-decoration:none;}
a:visited {text-decoration:n...
分类:
其他好文 时间:
2015-01-18 15:45:56
阅读次数:
171
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2015-01-18 15:47:14
阅读次数:
126
图像傅里叶变换的性质,傅里叶谱中心化原理...
分类:
其他好文 时间:
2015-01-18 15:47:47
阅读次数:
6173