懒汉,线程不安全public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { ...
分类:
其他好文 时间:
2015-05-16 13:09:43
阅读次数:
99
package baseTest;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql....
分类:
其他好文 时间:
2015-05-16 13:08:29
阅读次数:
87
Node*?node?=?CSLoader::createNode("home.csb");
this->addChild(node);
Button*?btnPlay?=?dynamic_cast<Button*>(node?->getChildByName("btnPlay"));
Button*?btnPlay?=?static_cast<ui::Button*...
分类:
其他好文 时间:
2015-05-16 12:05:44
阅读次数:
194
网页可见区域宽:document.body.clientWidth;? 网页可见区域高:document.body.clientHeight;? 网页可见区域宽:document.body.offsetWidth;(包括边线的宽) 网页可见区域高:document.body.offsetHeight;(包括边...
分类:
其他好文 时间:
2015-05-16 12:06:18
阅读次数:
200
IDE: 客户端:
分类:
其他好文 时间:
2015-05-16 12:07:03
阅读次数:
137
下面遇到问题,提供了一些解决办法,希望有所帮助 1:Shuffle Error: Exceeded MAX_FAILED_UNIQUE_FETCHES; bailing-out? 这是reduce预处理阶段shuffle时获取已完成的map的输出失败次数超过上限造成的,上限默认...
分类:
其他好文 时间:
2015-05-16 12:06:14
阅读次数:
139
Drying
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 10098
Accepted: 2589
Description
It is very hard to wash and especially to dry clothes in winter. Bu...
分类:
其他好文 时间:
2015-05-16 12:03:17
阅读次数:
247
#include
typedef struct Node{
int coe;
int exp;
}node;
int main()
{
int m,n;
scanf("%d %d",&m,&n);
node a[100],b[100];
for(int i=0;i<m;i++)
{
scanf("%d %d",&a[i].coe,&a[i].exp);
}
for(int...
分类:
其他好文 时间:
2015-05-16 12:05:02
阅读次数:
140
2014最难赛区7146 贪心这道题是考验STL的.
我们按照一个顺序排序(我方攻击力升序,敌方防御力升序),
此时因为要全部歼灭,优先考虑如何干掉敌方防御力最高的,此时将所有攻击力比它高的我方都放入multiset中维护,然后选择一个”最合适”的匹配(如果有我方防御力大于此时敌方攻击力的元素就使用,若没有就牺牲.首要任务是全部歼灭,此时能够消灭这个敌方的人都已经在multiset中了,若能够不...
分类:
其他好文 时间:
2015-05-16 12:02:34
阅读次数:
744
题目
思路
前缀树,之前有一道LeetCode的题差不多的,我用之前的代码修改了一下即过。代码struct WordDictionary {
char c;
// sons for "abcdefghijklmnopqrstuvwxyz\0"
struct WordDictionary * son[27];
};/** Initialize your data str...
分类:
其他好文 时间:
2015-05-16 12:03:58
阅读次数:
224
最先进的人脸识别是当前facebook和香港科技大学的深度神经网络的人脸识别:
论文下载地址:
facebook:DeepFace
https://research.facebook.com/publications/480567225376225/deepface-closing-the-gap-to-human-level-performance-in-face-verification/...
分类:
其他好文 时间:
2015-05-16 12:03:30
阅读次数:
160
号外
昨天,atom官方更新了atom的版本;
把之前内置到core的核心插件autocomplete替换成autocomplete plus,还做了许多修正,具体看这里
Notable Changes
Atom now bundles Autocomplete Plus and the completion providers for HTML, CSS, Less, Sass, sni...
分类:
其他好文 时间:
2015-05-16 12:03:44
阅读次数:
233
添加war 包 并重启tomcat的脚本
echo "stop tomcat..."
ps -ef|grep root|grep "tomcat"|grep java|grep -v grep|awk '{print $2}'|xargs -i kill -9 {}
sleep 6
echo "stop tomcat done!"
#判断根目录下是否有XXXX.war,如...
分类:
其他好文 时间:
2015-05-16 12:01:12
阅读次数:
223
废话不多说,贴代码!
Get my IP
whatsmyip My Real IP is:
document.write("");
Sohu API My IP Info:
var cip = returnCitySN.cip;
var cid = returnCitySN.cid;
var cname = returnCitySN.cnam...
分类:
其他好文 时间:
2015-05-16 12:00:51
阅读次数:
159
Cow Acrobats
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3207
Accepted: 1264
Description
Farmer John's N (1 <= N <= 50,000) cows (numbered 1..N) are pl...
分类:
其他好文 时间:
2015-05-16 12:00:23
阅读次数:
84
#ifndef _STRING_H_
#endif _STRING_H_
//#pragma once //此句与头两句效果相同
#include
using namespace std;
#define MAX_STRING_SIZE 10 //合并后存放字符串的空间大小,可以比第一的字符串长度小
typedef char SString[MAX_STRING_SIZE+1];
...
分类:
其他好文 时间:
2015-05-16 12:01:08
阅读次数:
170
刚写的,直接刷没了。0-0
看问题。
公司升级软件,但是,再使用原来的模板和类后,系统报错:无法找到类接口。
整整一篇。
但是我进去看了代码,使用了import和include,那到底是那里错了呢?
后来测试发现是发布设置的问题。
文件->发布设置
然后问题解决。
但是我发现,这个问题不是绝对的,看情况而定。
第二个问题,图片失真。
导出影片后,发现图像...
分类:
其他好文 时间:
2015-05-16 12:00:51
阅读次数:
121