摘录:使用Log4net调试NHibernate如果是Asp.net程序,首先配置web.config文件: NHibernate.Dialect.MsSql2000Dialect NHibernate.Connection.DriverConnectionProvider Serv...
分类:
Web程序 时间:
2014-07-02 23:56:29
阅读次数:
492
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-07-02 22:34:44
阅读次数:
318
这段时间公司实行代理上网,不仅通过浏览器上网须要不停的输入username和password,在本地调试程序时候Eclipse居然也弹出框让输入username和password。如图:解决的方法:windows--preferences--general---Network Connection....
分类:
系统相关 时间:
2014-07-01 22:00:21
阅读次数:
400
动态web开发的最大特点是可以警醒数据库的操作,传统的jdbc操作由于错组哦步骤重复性造成程序性能下降。
西安回顾JDBC的操作原理
1、加载数据库驱动程序,数据库驱动程序通过classpath配置。
2、通过DirverManager类取得数据库连接对象。
3、通过Connection实例化PreparedStatement对象,编写sql语句命令操作数据库。
4、数据库属于资源操作,...
分类:
编程语言 时间:
2014-07-01 14:24:02
阅读次数:
232
Sorted Array:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is gre...
分类:
其他好文 时间:
2014-07-01 12:51:53
阅读次数:
202
题目
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
方法
/**
* Definition for singly-linked list.
* class ListNode {
...
分类:
其他好文 时间:
2014-07-01 11:31:40
阅读次数:
178
现在常用的开源数据库连接池主要有c3p0、dbcp、proxool三种,其中:
Spring 推荐使用dbcp;
Hibernate 推荐使用c3p0和proxool;
1、 DBCP:Apache
DBCP(DataBase connection pool)数据库连接池。是Apache上...
分类:
数据库 时间:
2014-07-01 10:42:59
阅读次数:
209
参考:RPi Serial Connection本文来自:http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uartUsing the UARTIf you are running Ras...
分类:
Web程序 时间:
2014-07-01 10:21:01
阅读次数:
982
学习python时想要在gvim中配置python的编译环境,网上找到一个比较好用的vimrc配置,保存下来以备下次有需要。set encoding=utf-8set termencoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("w...
分类:
Windows程序 时间:
2014-07-01 10:20:25
阅读次数:
1794
关键是在检测到手指移动的时候用mPath.quadTo的方法,android sdk解释是:
Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2). If no moveTo() call has been made fo...
分类:
移动开发 时间:
2014-07-01 08:07:39
阅读次数:
289