一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time....
分类:
其他好文 时间:
2016-07-08 11:55:59
阅读次数:
146
1、EF同一个linq里边不支持两个或两个以上不同dbcontext的使用,必须拆解开才能使用; ef也不支持自定义集合和dbcontext属性的混合使用. 2、如果要用用统一域账号连接database,必须在IIS Application pool中设置该域账号,如下图. 3、如果dbcontex ...
分类:
其他好文 时间:
2016-07-08 01:25:23
阅读次数:
262
jdk,tomcat更新到jdk1.8与 tomcat8 运行报错:java.io.IOException: invalid constant type: 15 pom.xml文件中更新javassist的版本从3.15到3.18 <dependency> <groupId>org.javassis ...
分类:
编程语言 时间:
2016-07-07 19:49:06
阅读次数:
1157
config.setMaxWait(MAX_WAIT); jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, AUTH); 这俩行报错:The type org.apache.commons.pool.impl.GenericObjectPo ...
分类:
Web程序 时间:
2016-07-07 19:18:35
阅读次数:
208
带有数据存储的模型图总体的框架server中udp_server.h其中add_user函数为添加新上线用户信息1#pragmaonce
2#include<iostream>
3#include<map>
4usingnamespacestd;
5#include"data_pool.h"
6#include<pthread.h>
7#include<stdlib.h>
8classudp_serve..
分类:
其他好文 时间:
2016-07-07 17:38:06
阅读次数:
296
ubuntu 14.04 使用python读取tiff图像 首先需要安装一个pylibtiff 下面下载好deb的安装包 http://ftp.iitm.ac.in/linux/ubuntu/ubuntu/pool/universe/p/pylibtiff/ 然后直接安装就行了 之前使用了githu ...
分类:
系统相关 时间:
2016-07-06 18:13:30
阅读次数:
1654
//data_pool.h
#include<iostream>
#include<vector>
#include<semaphore.h>
#include"comm.h"
usingnamespacestd;
#define_CAP_256
classdata_pool
{
public:
data_pool(intsize=_CAP_);
voiddata_put(string&_in);
voiddata_get(string&_out);
~da..
分类:
其他好文 时间:
2016-07-05 14:23:39
阅读次数:
209
1、确认python为2.7.0以上版本python-V2、安装pipinstallhttps://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl3、测试helloworldvimtf_hello.pyimporttensorflowastfa=tf.constant(100)b=tf.constant(20)printsess.run(a+b)4、执..
分类:
其他好文 时间:
2016-07-04 15:45:06
阅读次数:
194
commons-dbcp连接池,还有其它可以选择的方案,如c3p0,bonecp等,与这些连接池实现相比,Tomcat jdbc pool更突出的功能体现在:
支持多核系统,提供更好的高并发性能。
接口动态实现,运行时环境支持java.sql和javax.sql接口,可以使用低版本JDK编译。
无需每次使用连接时都验证连接,可以在获取或返回连接时验证,不用比设置的间隔时间更频繁。
当数据库连接建立时,一个可设置的查询将运行一次。这对保持连接建立整个时间中的会话十分有用。...
分类:
其他好文 时间:
2016-07-03 11:55:51
阅读次数:
744
Sort a linked list in O(n log n) time using constant space complexity. Example Given 1->3->2->null, sort it to 1->2->3->null. Merge Sort version 1 /** ...
分类:
其他好文 时间:
2016-07-03 11:39:05
阅读次数:
163