批處理_獲取當前時間_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 至尊貝貝 閱讀(322) | 評論 (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 至尊貝貝 閱讀(461) | 評論 (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 至尊貝貝 閱讀(507) | 評論 (0) | 編輯 收藏 [20100524]-[Flex4]-[素材顏色]-[一組簡單的CHARTS顏色填充]
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-24 01:45 至尊貝貝 閱讀(292) | 評論 (0) | 編輯 收藏 [20100524]-[素材]-[顏色]-[一組簡單顏色]-[FusionChart使用]![]() ![]() ![]() posted @ 2010-05-24 01:31 至尊貝貝 閱讀(183) | 評論 (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) | 編輯 收藏 |
|