File file = new File("E://rawSpeechRecordData//");
File newFile = null;
if (!file.exists()) {
file.mkdir();
if (file.isDirectory()) {
SimpleDateFormat format = new Simple...
分类:
编程语言 时间:
2014-12-25 20:35:29
阅读次数:
148
读INI文件public function readini($name){ if (file_exists(SEM_PATH.'init/'.$name)){ $data = parse_ini_file(SEM_PATH.'init/'.$name,true); if ($dat...
分类:
Web程序 时间:
2014-12-25 20:16:15
阅读次数:
208
http://yeoman.io/Yeoman用来生成项目骨架,类似Maven的quick-start,(依赖Bower)安装 npm install -g yo安装项目模板 npm install -g generator-[name], 如npm install -g generator-ang...
分类:
其他好文 时间:
2014-12-25 20:09:38
阅读次数:
120
今天去Spring官网上看了一下,立即被里面quick start吸引了。以往我写Spring注解都是这样:@Autowiredprivate MemoryStore memoryStore;但是demo给出的确实将注释放在构造函数上:@Autowiredpublic MessagePrinte.....
分类:
编程语言 时间:
2014-12-25 17:59:58
阅读次数:
378
参考:http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag/一、网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将...
分类:
移动开发 时间:
2014-12-25 13:01:37
阅读次数:
159
http://cn.cocos2d-x.org/tutorial/show?id=1507http://cn.cocos2d-x.org/tutorial/show?id=1447http://blog.sina.com.cn/s/blog_71ad028b0101ms4n.html代码加密,1.到...
分类:
其他好文 时间:
2014-12-25 06:35:27
阅读次数:
361
题目:(String)Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique...
分类:
其他好文 时间:
2014-12-25 06:34:06
阅读次数:
198
本章翻译自Elasticsearch官方指南的Controlling
Relevance一章。
通过查询结构调整相关度
ES提供的查询DSL是相当灵活的。你可以通过将单独的查询子句在查询层次中上下移动来让它更重要/更不重要。比如,下面的查询:
quick OR brown OR red OR fox
我们可以使用一个bool查询,对所有词条一视同仁:...
分类:
其他好文 时间:
2014-12-25 01:30:42
阅读次数:
251
Ping pong
Description
N(3N20000) ping
pong players live along a west-east street(consider the street as a line segment). Each player has a unique skill rank. To improve their skill...
分类:
其他好文 时间:
2014-12-24 22:50:18
阅读次数:
178
做的项目中需要引用Source Trees定义路径里的头文件,刚开始没有头绪,稍加思索发现太简单了。 此Source Trees非彼Source Tree,是Xcode“偏好设置”中的一个选项,见下图: 以上面的“QUICK_COCOS2DX_ROOT”一项...
分类:
其他好文 时间:
2014-12-24 20:14:01
阅读次数:
181