码迷,mamicode.com
首页 > 2014年12月31日 > 全部分享
Codeforces 500D New Year Santa Network(树 + 计数)
D. New Year Santa Networktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNew Year is coming in T...
分类:Web程序   时间:2014-12-31 06:21:04    阅读次数:399
图片上传的处理工具类
图片上传的处理package com.tools;//图片上传处理import java.awt.Image;import java.awt.image.BufferedImage;import java.io.FileInputStream;import java.io.FileOutputStr...
分类:Web程序   时间:2014-12-31 06:20:18    阅读次数:246
LintCode-First Bad Version
The code base version is an integer and start from 1 to n. One day, someone commit a bad version in the code case, so it caused itself and the followi...
分类:其他好文   时间:2014-12-31 06:18:42    阅读次数:153
MD5加密的工具类
MD5加密的工具类package com.tools;//对用户加密啊import java.security.*;public class MD5{ public final static String code(String s) { char hexDigits[] = {...
分类:其他好文   时间:2014-12-31 06:18:58    阅读次数:145
生成随机验证码工具类
生成随机验证码package com.web;//验证码生成处理类import java.awt.BasicStroke;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.Graph...
分类:其他好文   时间:2014-12-31 06:18:03    阅读次数:210
Hibernate支持类中的分页查询的实现
Hibernate支持类的实现package com.myHibernateDao;import java.sql.SQLException;import java.util.List;import javax.annotation.Resource;import org.hibernate.Hib...
分类:Web程序   时间:2014-12-31 06:20:16    阅读次数:197
mysql architecture overview & concept
分类:数据库   时间:2014-12-31 06:20:11    阅读次数:339
时间处理工具类
时间处理工具类package com.tools;//时间处理类import java.util.Date;import java.text.SimpleDateFormat;public class Time { public static String getTime(){ ...
分类:其他好文   时间:2014-12-31 06:18:10    阅读次数:165
Spring不能给sessionFactory注入值的问题,以及org.hibernate.HibernateException: createQuery is not valid without active transaction异常
在Struts2+Spring3+Hibernate4的框架下,本来想在DAO中通过setter注入,给sessionFactory赋值,但是却出现NullPointerException的异常。经过调试,发现sessionFactory的值为null。后来发现,原来在service层中,这个...
分类:编程语言   时间:2014-12-31 06:17:16    阅读次数:168
Windows Phone开发需要了解的背景
在Windows Phone8.1之前,Windows Phone应用是基于Silverlight的,这些代码也不能在Windows上运行,从Windows Phone8.1开始,开发者多了一个选择,就是可以开发Univeral的应用,也就是一份代码,既可以在Windows上运行,又可以在Windo...
分类:Windows程序   时间:2014-12-31 06:16:48    阅读次数:217
unity3d 角色头顶信息3D&2D遮挡解决方案(二)
在阅读本文之前请先阅读上一篇文章:http://www.cnblogs.com/shenggege/p/4179012.html本来一篇文章就可以说完了,但是上次只是实现了已知的一些功能后来在实际运用中遇到了一个问题,请看图3D场景嘛!近大远小!当我把视角移动得很远时,头顶信息就变得很小了,小得我看...
分类:编程语言   时间:2014-12-31 06:18:17    阅读次数:1810
HDU 1234 简单模拟题
题目很简单不多说了,我只是觉得这题目的输入方式还是很有特点的 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct People{ 8 char name[20]; 9 i...
分类:其他好文   时间:2014-12-31 06:18:06    阅读次数:141
[leetcode] Substring with Concatenation of All Words
题目:(HashTable,Two Point)You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in...
分类:其他好文   时间:2014-12-31 06:16:33    阅读次数:203
Struts2+Spring3+Hibernate4中,数据源应配置在Spring下,否则有异常:Cannot unwrap to requested type [javax.sql.DataSource]
启动项目,报错:org.hibernate.service.UnknownUnwrapTypeException: Cannot unwrap to requested type [javax.sql.DataSource]。也就是说,不能打开数据源。可是我在Hibernate的配置文件中明明配.....
分类:数据库   时间:2014-12-31 06:16:44    阅读次数:152
im-switch -s ibus错误:Error: no configuration file "ibus" exists.
在虚拟机上安装Ubuntu14.04 后安装ibus输入法,万万没想到在切换输入法的时候居然出错了!无语了,再网上查了一下,这个错误出现的还是比较少的。先说Ubuntu输入法(ibus)安装的一般步骤吧。一、安装语言包System Settings-->Language Support-->Inst...
分类:其他好文   时间:2014-12-31 06:18:38    阅读次数:716
猴子爬山问题的延伸
猴子爬山问题的延伸把问题的参数一般化:爬山台阶n级,一步有m种跳法,整数mn有键盘输入分级递推算法的设计设爬
分类:其他好文   时间:2014-12-31 06:18:46    阅读次数:153
TortoiseGit+msysgit记住帐号密码
方法一(针对TortoiseGit和msysgit有效)开始菜单-》运行 输入%HOME% 打开目录,找到.gitconfig" 文件 然后增加两行:[user] name = lion email = huazi123654@126.com[core] autocrlf = tr...
分类:其他好文   时间:2014-12-31 06:18:30    阅读次数:268
1619条   上一页 1 ... 86 87 88 89 90 91 92 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!