public static int getExifOrientation(String filepath) {
int degree = 0;
ExifInterface exif = null;
try {
exif = new ExifInterface(filepath);
} catch (IOException ex) {
Log...
分类:
移动开发 时间:
2014-08-20 22:47:13
阅读次数:
329
什么是Ibatis? 大家都知道jdbc的话就会知道,有很多操作是与业务和数据无关的真正你需要的就是,一个运行sql语句的功能,还有取回结果的功能但是jdbc要求你处理连接、会话、statement,尤其是还要你注意关闭资源,还要写try catch处理异常.ibatis 就是帮你把这些乱七八...
分类:
其他好文 时间:
2014-08-20 22:37:02
阅读次数:
324
from__future__importwith_statement#-*-coding:utf-8-*-#python:2.x__author__='Administrator'#with和contextlib#对于要确保即使发生一个错误时也能运行一些清理代码而言,try...finally语句很...
分类:
编程语言 时间:
2014-08-20 22:26:32
阅读次数:
282
var _win, _doc, _stt, _do = document.domain, _arr = _do.split(".");function _st() { try { document.domain = _arr.join("."); _arr.shift(); }catch(e){.....
分类:
Web程序 时间:
2014-08-20 19:25:02
阅读次数:
236
public static T ObjectToEnum(object o) { try { return (T)Enum.Parse(typeof(T), o.ToString(), true)...
分类:
其他好文 时间:
2014-08-20 15:57:12
阅读次数:
179
这里是将pc作为server,设备作为客户端。Server端代码:publicstaticfinalStringSERVERIP="192.168.0.2";publicstaticfinalintSERVERPORT= 51706;publicvoidrun(){try{System.out.pr...
分类:
移动开发 时间:
2014-08-20 12:21:02
阅读次数:
250
使用fat jar 将一个工程打包后,使用以下代码 将jar输出为字节流 public final static byte[] findJarBytes(String path){ File file = new File(path); try{ ...
分类:
其他好文 时间:
2014-08-20 12:02:22
阅读次数:
273
1 用安装ubuntu的优盘(或者光盘)插入电脑;2 启动电脑,从优盘启动;3 进入“try ubuntu“4 打开终端:ctr+alt+T5 sudo fdisk -lBoot打星号的那个/dev/sda1 是bootid=83的那个/dev/sda8是ubuntu安装盘6 sudo -i7 mo...
原文:IS2009制作Oracle 静默安装包(一)感谢空白先生特许授权上一篇: MyEclipse中消除frame引起的“the file XXX can not be found.Please check the location and try again.”的错误 本文经原作者特许授权于海洋...
分类:
数据库 时间:
2014-08-19 18:55:15
阅读次数:
357
设置模板代码步骤:window->java->Templates->new模板代码Session session = HibernateUtils.openSession(); try { HibernateUtils.startTransaction(); ...
分类:
其他好文 时间:
2014-08-19 16:26:34
阅读次数:
208