String path = "notepad.exe"; //(C:\Program Files\Tencent\QQ\Bin\qq.exe)try {Runtime runtime = Runtime.getRuntime();Process process = runtime.exec(path...
分类:
编程语言 时间:
2014-09-30 09:27:52
阅读次数:
180
1. 画空心矩形(其他的空心圆之类的东西也是使用的)rect.beginFill(0,1);rect.drawRect(0,0,480,480);rect.drawRect(3.5,3.5,473,473);rect.endFill();2.try...catch 能不用就不用,这个会影响As3程序...
分类:
其他好文 时间:
2014-09-29 23:53:21
阅读次数:
208
hibernate
一、 hibernate介绍
hibernate其实就是ormapping框架,此框架的作用就是简单话数据库的操作。
hibernate就是将用户提交的代码,参照持久化类配置文件,转换成sql语句。
1、 JDBC的优/缺点:
1. 缺点:
1、 查询代码特别繁琐。
2、 重复性代码多,频繁的try,catch。
3、 没有对数据的缓存(就是将先将数据放入内存中...
分类:
系统相关 时间:
2014-09-29 17:44:21
阅读次数:
493
#!/usr/bin/pythonimportreimportosimporturllibtry:importsimplejsonexceptImportError:os.popen(‘yuminstallpython-simplejson-y‘)try:importpycurlexceptImportError:os.popen(‘yuminstallpython-pycurl-y‘)defbuffer_line(monitor_log):buf=open("/etc/sae/rdc_buffer.txt"..
分类:
其他好文 时间:
2014-09-29 16:20:41
阅读次数:
244
异常处理的捕捉形式:
这是可以对异常进行针对性处理的方式
六、try、catch的理解
具体格式:
try
{
//需要被检测异常的代码
}
catch(异常类 变量)//改变量用于接受发生异常的对象
{
//处理异常的代码
}
finally
{
//一定会被执行的代码
}
这三个代码块是一个整体。
try是尝试,catch捕捉,finally最终化
什么...
分类:
编程语言 时间:
2014-09-29 03:07:56
阅读次数:
323
/** * 导出规则统计数据 excel格式 * @param bill * @return */ public String exportExamsignupExamnoExcel ( String tablename ) { try ...
分类:
其他好文 时间:
2014-09-28 19:15:24
阅读次数:
161
提示:导出pdf文件,需要3个jar包iText-2.1.5.jar,iTextAsian.jar,iText-rtf-2.1.4.jar。 public boolean outputPdfJhsy(EntityBean data) { try { Global...
分类:
编程语言 时间:
2014-09-28 18:44:34
阅读次数:
400
#include #include #include #include using namespace std;int main(int argc, char *const *argv){ try { leveldb::DB* db; leveldb::Opt...
分类:
数据库 时间:
2014-09-28 18:43:24
阅读次数:
285
Android设置壁纸有许多方法,主要思路有两种:
1:通过WallpaperManager设置
2:通过系统程序设置
下文将分开说明:
通过WallpaperManager设置
该方法可以直接将图片置为壁纸,对于所有平台的Android系统都使用,但无法裁剪/调整图片。
try {
WallpaperManager wpm = (WallpaperManager) g...
分类:
移动开发 时间:
2014-09-28 16:40:53
阅读次数:
156
1、不管有木有出现异常,finally块中代码都会执行;2、当try和catch中有return时,finally仍然会执行;3、finally是在return表达式运算后前执行的,所以函数返回值是在finally执行前确定的;4、finally中最好不要包含return,否则程序会提前退出,返回值...
分类:
其他好文 时间:
2014-09-28 15:41:42
阅读次数:
162