批處理_獲取當前時間_BAT
set d=%d:-=%
set d=%d: =0%
set t=%time:~0,8%
set t=%t::=%
set t=%t: =0%
echo "%p%%d%%t%"
pause
posted @ 2011-05-03 18:29 至尊貝貝 閱讀(1856) | 評論 (0) | 編輯 收藏
隨筆 - 25, 文章 - 1, 評論 - 0, 引用 - 0
|
批處理_獲取當前時間_BATset d=%date:~0,10%
set d=%d:-=% set d=%d: =0% set t=%time:~0,8% set t=%t::=% set t=%t: =0% echo "%p%%d%%t%" pause posted @ 2011-05-03 18:29 至尊貝貝 閱讀(1856) | 評論 (0) | 編輯 收藏 [Java]-[截圖]-[獲取屏幕某點的RGB]-[代碼] public static String getHexRGB(int x, int y, Robot robot) {
if (robot == null) return "null"; Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize(); BufferedImage bi = robot.createScreenCapture(new Rectangle(0, 0, dimension.width, dimension.height)); return Integer.toHexString(16777216 + bi.getRGB(x, y)); } posted @ 2010-10-29 09:49 至尊貝貝 閱讀(349) | 評論 (0) | 編輯 收藏 [FlashPlayer]-[release]-[離線安裝程序]posted @ 2010-09-28 16:23 至尊貝貝 閱讀(323) | 評論 (0) | 編輯 收藏 XP系統自動登陸
注冊表:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon
DefaultUserName 值 為要登陸的用戶名:
DefaultPassword 為你的密碼:
AutoAdminLogon 值為1
posted @ 2010-09-28 07:55 至尊貝貝 閱讀(202) | 評論 (0) | 編輯 收藏 [chrome][symantec]沖突解決辦法
修改注冊表 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysPlant下"Start" DWORD的值為"4"
posted @ 2010-09-26 09:00 至尊貝貝 閱讀(462) | 評論 (0) | 編輯 收藏 [20100822]-[Flex]-[ACTIONSCRIPT]-[數組的深復制]import flash.utils.ByteArray;
function clone(source:Object):* { var myBA:ByteArray = new ByteArray(); myBA.writeObject(source); myBA.position = 0; return(myBA.readObject()); } posted @ 2010-08-22 21:37 至尊貝貝 閱讀(183) | 評論 (0) | 編輯 收藏 [Java]-[Enum]-[DBTYPE] enum DatabaseProduct {
ACCESS, UNKNOWN, DERBY, DB2_OLD_AS400, DB2_AS400, DB2, FIREBIRD, GREENPLUM, HSQLDB, INFORMIX, INFOBRIGHT, INGRES, INTERBASE, LUCIDDB, MSSQL, NETEZZA, NEOVIEW, ORACLE, POSTGRESQL, MYSQL, SQLSTREAM, SYBASE, TERADATA, VERTICA; /** * Return the root of the family of products this database product * belongs to. * * <p>For {@link #DB2_AS400} and {@link #DB2_OLD_AS400} returns * {@link #DB2}; for all other database products, returns the same * product. * * @return root of family of database products */ public DatabaseProduct getFamily() { switch (this) { case DB2_OLD_AS400: case DB2_AS400: return DB2; default: return this; } } } posted @ 2010-07-26 15:15 至尊貝貝 閱讀(204) | 評論 (0) | 編輯 收藏 [20100531]-[BIEE]-[BAT]-[開啟和停止BIEE服務]net stop "sawjavahostsvc"
net stop "sawsvc" net stop "Oracle BI Server" echo 即將開啟OracleBiee服務 pause net start "sawjavahostsvc" net start "sawsvc" net start "Oracle BI Server" posted @ 2010-05-31 17:24 至尊貝貝 閱讀(229) | 評論 (0) | 編輯 收藏 [20100531]-[Javascript]-[IE判斷是否網頁元素加載完畢]![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 只對IE有效 posted @ 2010-05-31 17:17 至尊貝貝 閱讀(508) | 評論 (0) | 編輯 收藏 [20100524]-[Flex4]-[素材顏色]-[一組簡單的CHARTS顏色填充]
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-24 01:45 至尊貝貝 閱讀(292) | 評論 (0) | 編輯 收藏 [20100524]-[素材]-[顏色]-[一組簡單顏色]-[FusionChart使用]![]() ![]() ![]() posted @ 2010-05-24 01:31 至尊貝貝 閱讀(184) | 評論 (0) | 編輯 收藏 [Flex4]-[20100524]-[文件上傳]需要用到的Flex原生態對象 1.FileReferenceList 2.FileReference 3.URLRequest 4.URLVariables
參考代碼: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-24 01:28 至尊貝貝 閱讀(606) | 評論 (0) | 編輯 收藏 [Flex]-[20100524]-[Stream]-[從服務端讀取圖片]Flex 如何從服務端讀取流信息 使用的原生態對象 封裝對象: 源碼如下: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() ![]() ![]() ![]()
posted @ 2010-05-24 01:21 至尊貝貝 閱讀(490) | 評論 (0) | 編輯 收藏 Ajax從服務端讀取圖片數據
服務端代碼:
@Action(value = "/imageload")
public String imageLoad ()throws Exception { File f = new File ("d:/down.jpg"); FileInputStream in = new FileInputStream (f); byte[] b = new byte[in.available()]; in.read(b); HttpServletResponse response = ServletActionContext.getResponse(); // response.setCharacterEncoding("UTF-8"); response.setContentType("image"); OutputStream pwt = response.getOutputStream(); pwt.write(b); pwt.flush(); pwt.close(); return null; } 客戶端代碼:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Insert title here</title> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> </head> <body> <img id="img1" src=""></img> <script type="text/javascript"> function load() { $('#img1').attr('src', 'subject/imageload.action'); } </script> <button onclick=load();>點擊獲取</button> </body> </html> posted @ 2010-05-19 17:20 至尊貝貝 閱讀(1241) | 評論 (0) | 編輯 收藏 無語
問題又始于IE與Firefox
試問你用一個最新版的Firefox去與遠古級的IE6做比較有意義么,
可是偏偏有許多人喜歡這么去比較,借此來宣傳Firefox.
馬克思說了很多費話,但還是有一句說的蠻對的,我們要辯證地看待事物.
劉翔他跑了世界冠軍破了世界紀錄也與我無關,
臨場退賽也與我無關,他跑了第一也不代表黃種人就怎么怎么樣了
我一直用IE 我也用Firefox 我也用Chrome 我也用Safari
我也不用殺毒軟件,我也不中木馬病毒.
我就知道,倒賣大蒜,白癡都能掙錢,我也知道,程序員同樣龍魚混雜.我們很少聽到龍嘯,看到的都是魚在冒泡.
每天都是IE與Firefox ,Windows與Linux, C與Java
posted @ 2010-05-18 10:10 至尊貝貝 閱讀(120) | 評論 (0) | 編輯 收藏 [20100514]-[FLEX4]-[在SWF中嵌入字體]
起因是 Flex4中使用的仍然是MX的DataGrid 但是因為字體原因 ,使得DataGrid在某些效果上(如Fade|Rotate)可能無效甚至失去響應,解決的辦法是把字體嵌入到SWF中去.參考代碼:
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-14 16:33 至尊貝貝 閱讀(727) | 評論 (0) | 編輯 收藏 [20100427]-[源碼]-[Java]-[讀取文件并輸出]![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-06 23:08 至尊貝貝 閱讀(161) | 評論 (0) | 編輯 收藏 Flex報錯 : CreateProcess error=2
新安裝了一個FlexBuilder3
可是在運行 Application的時候 報出 CreateProcess: "%ProgramFiles%\Internet Explorer\iexplore.exe" G:\java\Flex\........html error=2 Error=2好像是Windows系統返回的錯誤 且不去管他. ~ 打開Eclipse的--Preferences---General---Web Browser---將Default system Web browser 修改成Internet Explorer或Firefox 問題得以解決 `~ 至此問題原因 也很明了 因為我的系統已經使用了很多年了~ Windows默認的是IE6吧~ 已經早就升級成了IE8 但是參數Default Web Browser應該還是指向IE6 , 所以出了問題~~ 與Eclipse無關~~ posted @ 2010-03-14 11:36 至尊貝貝 閱讀(1739) | 評論 (0) | 編輯 收藏 Google Chrome 離線下載安裝包地址下載地址:dl.google.com/chrome/install/472.53/chrome_installer.exe 472.53為Chrome版本號 posted @ 2010-01-28 00:56 至尊貝貝 閱讀(376) | 評論 (0) | 編輯 收藏 Mysql 中文亂碼問題![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-01-25 00:17 至尊貝貝 閱讀(117) | 評論 (0) | 編輯 收藏 Struts2 下報出:Unable to load configuration
Unable to load configuration. - bean - jar:file:/F:/Web/homesite/jsp/struts/WEB-INF/lib/struts2-convention-plugin-2.1.8.jar!/struts-plugin.xml
Struts2下加載的架包: 一般有 : commons-logging-1.0.4.jar commons-fileupload-1.2.1.jar commons-io-1.3.2.jar struts2-core-2.1.8.jar xwork-2.1.6.jar freemarker-2.3.15.jar ognl-2.7.3.jar posted @ 2010-01-18 23:25 至尊貝貝 閱讀(367) | 評論 (0) | 編輯 收藏 ORA-27102 解決辦法
因為在32位操作系統上執行了如下的操作 之后再重啟數據庫就會失敗 解決的方法也很簡單: ![]() ![]()
保存之后 ![]()
啟動成功之后就可以把之前的錯誤參數修改過來了
![]() ![]()
------------------------------------------------------------------------------------------------------------------------------------------------------ 其他命令(轉): ![]()
如果isspecified里有true,表明用spfile進行了指定配置 //查看Spfile的路徑 ![]()
//從spfile獲取pfile ![]() ![]()
//從pfile獲取spfile ![]() ![]()
//動態修改參數 ![]()
Startup nomount的時候需要讀去spfile或pfile,兩者共存,spfile優先 //強制用pfile啟動 ![]() ![]()
posted @ 2010-01-16 10:18 至尊貝貝 閱讀(8925) | 評論 (0) | 編輯 收藏 JavaScirpt
從Date類型中取形如 20091201 字符串
function getDate(s_date) {
var str_date = new Array(); str_date.push(s_date.getFullYear()); str_date.push(s_date.getMonth() < 9 ? "0" + (s_date.getMonth() + 1) : (s_date.getMonth() + 1)); str_date.push(s_date.getDate() < 10 ? "0" + s_date.getDate() : s_date .getDate()); return str_date.join(""); } posted @ 2009-12-31 14:11 至尊貝貝 閱讀(132) | 評論 (0) | 編輯 收藏 |
|