1.定义Hibernate工具类HibernateUtil,如下public class HibernateUtil {
private static SessionFactory sessionFactory;
/**
*
* @Description: 获取会话工厂sessionFactory
* @author kexi.yan
* @date 201...
分类:
Web程序 时间:
2015-05-08 13:01:55
阅读次数:
241
装好caffe之后,下面我们来跑它自带的第一个例子,在mnist进行实验,参见http://caffe.berkeleyvision.org/gathered/examples/mnist.html(1)caffe在mnist自带的是使用leNet的网络结构。 1.简介: LeNet论文是Yan L...
分类:
Web程序 时间:
2015-04-24 00:58:43
阅读次数:
1093
1:懒汉式,不保证线程安全package com.yan.singleton;public class LazySingleton { private static final LazySingleton instance = null; private LazySingleto...
分类:
编程语言 时间:
2015-04-12 22:34:39
阅读次数:
179
http://www.hankcs.com/program/zend-eclipse-hu-yan-pei-se-fang-an-cha-jian.html白底绿字看久了眼睛也会累呀,偶然看到了一款不错的护眼配色方案插件,适用于eclipse系列的编辑器,推荐给大家:安装及设置方法:打开帮助——安装...
分类:
其他好文 时间:
2015-04-07 13:29:07
阅读次数:
115
没什么可说的,继承主要就是继承父类的一些方法,代码中很详细
#!/usr/bin/env python
#coding:utf-8
class Father(object):#新式类
def __init__(self):
self.name='Liu'
self.FamilyName='Yan'
def Lee(self)...
分类:
编程语言 时间:
2015-03-13 18:42:26
阅读次数:
155
During the Warring States Period of ancient China(476 BC to 221 BC), there were seven kingdoms in China ---- they were Qi, Chu, Yan, Han, Zhao, Wei and Qin. Ying Zheng was the king of the kingdom Qin. Through 9 years of wars, he finally conquered all six o...
分类:
编程语言 时间:
2015-02-23 09:42:05
阅读次数:
254
原文连接:http://blog.kaggle.com/2014/12/22/convolutional-nets-and-cifar-10-an-interview-with-yan-lecun/摘要:CIFAR-10竞赛之后,卷积网络之父Yann LeCun接受相关采访。他认为:卷积网络需要大数...
分类:
Web程序 时间:
2015-01-22 17:00:39
阅读次数:
322
一:输出
用print加上字符串,可以在屏幕上输出指定的文字。例如输入‘liu yan liang’
print 'LiuYanliang'
print语句也可以跟上多个字符串,用逗号“,”隔开,就可以连成一串输出:
print 'Liu','Yan','liang'
print会依次打印每个字符串,遇到逗号“,”会输出一个空格,因此,输出的字符串是拼起来的。...
分类:
编程语言 时间:
2015-01-19 19:05:09
阅读次数:
164
yan@localhost:~$ pkg-config --list-all | grep gtkgtk+-x11-3.0 GTK+ - GTK+ Graphical UI Librarygtk+-3.0 GTK+ - GTK+ Graphical UI Librarygtk+-unix-print...
分类:
其他好文 时间:
2014-12-16 11:18:48
阅读次数:
167
关键代码: #region 文字换行 /// /// 文字换行 /// eg:StringHelper.WrapText("YanZhiwei", 3);==>"Yan\r\nZhi\r\nwei" /// /// 需要换行的文字 /// 多少长度换行 /// 换行好的文...