2010年12月28日 星期二

PDF 檔案整會 - pdfbinder

可將多個pdf 檔案合成為一

http://code.google.com/p/pdfbinder/




2010年11月18日 星期四

Easy Photo Uploader – 安裝後可按右鍵上載圖片到 Facebook

easy_video_uploader_for_facebook_1

Easy Photo Uploader 是一套免費軟件, 可以幫你在視窗作業系統內快捷地上載大量圖片到 Facebook.

視頻簡介 (法文)

使用方法

easy_video_uploader_for_facebook_2

安裝 Easy Photo Uploader 後, 用戶可以在視窗內直接在圖片上按右鍵, 然後點選 “Send your photo(s) to Facebook”.

easy_video_uploader_for_facebook_3

點擊 “Open an existing Facebook account”, 然後按 “Next”. 輸入電郵地址和密碼登入 Facebook.

easy_video_uploader_for_facebook_4

然後 Facebook 會要求你確認 Easy Photo Uploader 的授權請求. 按 “Allow” 同意請求.

easy_video_uploader_for_facebook_5

點擊 “Create a new album” 新增相簿, 然後按 “Next”.

easy_video_uploader_for_facebook_6

輸入有關相簿的資料 (名稱, 地點, 描述和權限), 然後按 “Create”.

easy_video_uploader_for_facebook_7

easy_video_uploader_for_facebook_8

再一次按 “Next” 開始上載圖片.

easy_video_uploader_for_facebook_9

上載完成後, 會出現一份簡短的上載報告. 看完按 “Close” 把它關掉.

軟件性質: 免費軟件
介面語言: 英文
系統支援: 視窗 XP, 2003, Vista, 7
官方網頁: 按這裡!

下載地址: 按這裡!

轉載 : http://www.1am.hk/?p=2936

2010年11月4日 星期四

Windows 7的User Account Control(UAC)

[Forword from gipi的學習筆記-職場觀念、管理、IT部落格]

裝好Windows 7之後,系統常常會跳類似這樣的訊息出來,有點類似當你在網路上下載一個執行檔下來,如果我們有勾選Always ask before opening this file,執行時它會問你是否確定執行,這個功能的目的是避免我們從網路上下載了危險的執行檔後在未經思考的情況下就直接執行了,感覺有點像是被詐騙集團給騙了,沒有仔細思考就把錢透過轉帳給轉出去了,不過大家都知道有詐騙集團很多,也都知道網路上下載的執行檔危險性很高,但我們總是貪圖方便,就會選擇性的忽略某些警示....

image

image

UAC這項功能的目的實際上是要幫我們做把關,即使你已經將Always ask before opening this file反勾選,但當你在執行這個網路上下載的程式時,UAC仍然會跳出上頭的提示,問你是否確認要執行,乍看之下這個功能真不錯,幫我們擋掉一些無腦的下一步-->下一步動作,但說真的,如果你要安裝的東西都是一些日常會用到的軟體,如Office、Visual Studio等等,但他一直跳出警示訊息,你應該也是會覺得很煩,這時候我們大概就會想要把這個警示訊息的功能給關掉了,至此,這也是個人電腦資安發生的最主要原因:貪圖方便。

今天撇開資安的問題不看,我們如何把這個警示訊息關閉呢?我們可以依以下步驟:

打開Control Panel-->User Accounts-->Change User Account settings

image

執行完後會出現以下這個畫面,裡頭我們可以看到UAC的Notification level分為四個,而預設是在第二高的level,這四個level的簡單描述我們往下看,

image

Top level:Always notify

進行任何安裝或者各種Windows設定變更時都會跳出警示訊息,下方的建議說,如果你常常安裝不熟悉的軟體或者常造訪不熟悉的網站的話,建議你選用這個層級。

image

Second level:Default

當執行的程式想要變更電腦的設定時提醒,但在進行Windows設定變更時不要提醒,下方的建議說,如果你使用的軟體都是熟悉的(EX:發行廠商明確的商用軟體),造訪的網站都是熟悉的,你可以使用這個層級。

image

Third level:Fewer notification

預設狀態下(Second level),當警示訊息出現時,我們的螢幕會變暗(功能上有點類似桌面的遮罩,或稱Secure Desktop),但在Third level則不會。

image

Lowest level:Never notify

就永遠不警示了,不管做甚麼動作都不會提示,也就是將UAC的功能關閉了,下頭說除非你使用的軟體都不支援UAC,否則不要使用這個選項。

image

看了一下,這樣的功能是否真能遏阻愈來愈多的網路攻擊呢?我認為是困難的,因為我們往往為了方便,總是會把安全性降低,不管是IE的設定、防毒的防護等級還是這個UAC都一樣,只有當我們乖乖的把所有的安全防護都做好,我們的電腦才會比較安全(不是完全安全,要安全就是不是連上網路,不要安裝未經授權的程式),不過我們通常做不到阿...

參考資料:

User Account Control (UAC) – quick update

Sacrificing security for usability: UAC security flaw in Windows 7 beta (with proof of concept code)

2010年9月27日 星期一

2010年8月16日 星期一

How to activate/Crack Photoshop CS5?

How to activate/Crack Photoshop CS5 ?

How to turn off Automatic Updates in Adobe Photoshop ?

How to disable/crack Internet activation in Adobe Photoshop CS5 ?

Step 1: Turn off internet during installation ?

Step 2: Goto “C:\Windows\System32\drivers\etc”

Step: 3 Replace the existing “host” file with below:

127.0.0.1 activate.adobe.com
127.0.0.1 practivate.adobe.com
127.0.0.1 ereg.adobe.com
127.0.0.1 activate.wip3.adobe.com
127.0.0.1 wip3.adobe.com
127.0.0.1 3dns-3.adobe.com
127.0.0.1 3dns-2.adobe.com
127.0.0.1 adobe-dns.adobe.com
127.0.0.1 adobe-dns-2.adobe.com
127.0.0.1 adobe-dns-3.adobe.com
127.0.0.1 ereg.wip3.adobe.com
127.0.0.1 activate-sea.adobe.com
127.0.0.1 wwis-dubc1-vip60.adobe.com
127.0.0.1 activate-sjc0.adobe.com
127.0.0.1 adobe.activate.com
127.0.0.1 adobeereg.com
127.0.0.1 www.adobeereg.com
127.0.0.1 wwis-dubc1-vip60.adobe.com
127.0.0.1 125.252.224.90
127.0.0.1 125.252.224.91
127.0.0.1 hl2rcv.adobe.com

SN:

1325-1558-5864-4422-1094-1126
1325-1958-5864-4422-1094-1178


Step 4 : Restart PC and enjoy full version of Photoshop CS.

Disabling Adobe Application Manager automatic updates for CS5 applications for system administrators

Machine-wide disablement

To disable access to updates for all users on a given machine, administrators can create an admin preference file. (This file disables access to updates both from the Help > Updates menu, as well as automatic update checks.) Create a plain-text file named AdobeUpdaterAdminPrefs.dat with the following contents:

   

1

Put the file in the following location:

Mac OS/Library/Application Support/Adobe/AAMUpdaterInventory/1.0/AdobeUpdaterAdminPrefs.dat
Windows XP and Higher C:\Program files\common files\adobe\AAMUpdaterInventory\1.0\AdobeUpdaterAdminPrefs.dat
Windows XP and higher (64-bit) C:\Program files(x86)\common files\adobe\AAMUpdaterInventory\1.0\AdobeUpdaterAdminPrefs.dat

Note: This will also prevent administrators from checking for updates and installing updates through that update check. This is easily dealt with by simply renaming the AdobeUpdaterAdminPrefs.dat file, running the update check and installation with the Adobe Application Manager, then restoring the file to it's original name.

User account disablement

Note: This method only disables the automatic update check and notification. Users can still manually initiate checks for and installations of, updates through the Updates command on the Help menu in any Adobe CS5 application. If you need to prevent users from invoking update checks and installations, use the system wide method described above.

Disabling updates based on user accounts varies based on whether the action is taking place at the time of installation, or post-installation and post-product usage. In both cases, create a plain-text file named AdobeUpdaterPrefs.dat with contents that vary based on the situation as follows:

At time of installation

   

3
0
0

Post-install, post-product usage

   

3
3

In both of the above cases, put the file in the following location, overwriting the existing file in the later case:

Mac OS/Users//Library/Application Support/Adobe/AAMUpdater/1.0/AdobeUpdaterPrefs.dat
Windows Vista and Higher C:\Users\\AppData\Local\Adobe\AAMUpdater\1.0\AdobeUpdaterPrefs.dat
Windows XP C:\Documents and Settings\\Local Settings\Application Data\Adobe\AAMUpdater\1.0\AdobeUpdaterPrefs.dat


Source from : http://kb2.adobe.com/cps/850/cpsid_85016.html

2010年8月11日 星期三

SQLyog 破解


其通用版是免費的版本——已經是同類軟件的佼佼者了,但其打開、關閉軟件提示畫面,軟件界面裡灰色的不可用企業功能這是讓人心裡癢癢!
網上也有不少的破解版,先不管其是否真的完美破解,這使用破解的軟件總是叫人底氣不足! 難道沒有合理合法使用其企業版的辦法麼?
很簡單:刪除註冊表的以下註冊表項就ok了
這樣使軟件認為你是第一次試用,自動給你30天的免費試用期——我們只要在軟件30天過期後在刪除該項就又可以了:)

Win XP:
[HKEY_CURRENT_USER\Software\{FCE28CE8-D8CE-4637-9BC7-93E4C0D407FA}]

Win 7:
[HKEY_CURRENT_USER\Software\{F8679A4F-6927-440C-B7DE-1F915C0F87B2}]

2010年8月4日 星期三

2010年8月2日 星期一

將 XP 中文版變英文版

將 XP 中文版變英文版

在不重灌 XP 的前題下, 安裝英文版 SP2 與 IE7, 將 XP 系統核心英文化

預設環境:

  • Windows XP Home / Professional Edition 繁體中文版
  • Windows XP Service Pack 2 繁體中文版

執行步驟:

‧開始 → 執行 → regedit

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\Language

Default = 0409
InstallLanguage = 0409

ps. 繁體中文 = 0404; 簡體中文 = 0804

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\Locale

(Default) = 00000409

‧重新啟動電腦

‧開始 → 執行 → cmd

copy c:\windows\system32\ntdll.dll c:\

‧安裝英文版 Service Pack 2 (WindowsXP-KB835935-SP2-ENU.exe)

‧開始 → 執行 → cmd

copy /y c:\ntdll.dll c:\windows\system32

‧重新啟動電腦

‧安裝英文版 Internet Explorer 7 (IE7-WindowsXP-x86-enu.exe)

‧安裝英文版 Windows Media Player 11 (mp11-windowsxp-x86-enu.exe) - 非必備

‧Start → Run → regedit → Edit → Find

找出所有的 MUICache 機碼 (Keys), 刪除所有的內容 (除了 (Default))

‧Start → Control Panel → Regional and Language Options → Advanced

將 "Language for non-Unicode programs" 下拉選單設定為 "Chinese (Taiwan)", 讓非 Unicode 的 中文程式以繁體中文為預設字型, 才不會出現亂碼

‧Start → Control Panel → Internet Options → Languages → Add: English (United States) [en-US]

並將 English 調整為第一順位

‧將 C:\Windows\srchasst\mui 目錄裡的 0404 資料夾更名為 0409 (或另複製為 0409 資料夾) 才能正常使用 "搜尋" (Search) 功能

‧解決 KB898461 無法更新的問題:

  1. Start → Control Panel → Add or Remove Programs → [勾選] Show updates
  2. 移除已安裝的中文版 KB898461
  3. 手動下載並安裝英文版 KB898461

成果範例:


已知問題:

  • 說穿了只是利用 WinXP SP2 更新 XP 核心元件的特點, 將英文版核心元件取代原本中文版的檔案而已, 並非 100% 英文化, 但效果至少 80% 以上
  • 英文 SP2 的 ntdll.dll 無法開機 (原因可能與某中文語系的 DLL 衝突), 所以沿用中文 SP2 的 ntdll.dll
  • 無法安裝 KB898461 更新



2010年7月26日 星期一

Struts2 Excel export



struts2中有對導出excel表格的支持,所以開發起來比較容易,主要的步驟有三點:
1.配置文件:
<action name="excel" class="userAction" method="excel" >
<result name="excel" type="stream">
<!-- 注意這裡的ContentType -->
<param name="contentType">application/vnd.ms-excel</param>
<!-- 這裡需要和Action裡的變量名一致-->
<param name="inputName">excelStream</param>
<param name="contentDisposition">filename="user.xls"</param>
<param name="bufferSize">1024</param>
</result>
</action>
2.action中的函數為excel如下:
public String excel() throws Exception {
StringBuffer excelBuf = new StringBuffer();
excelBuf.append("編號").append("\t").append("登錄名稱").append("\t").append("聯繫人").append("\t").append ("電話").append("\t").append("Email").append("\t").append("所屬單位").append("\n");
List list1 = mobjUserService.findAllUser();
for (int i = 0; i < list1.size(); i++) {
User user = (User) list1.get(i);
excelBuf.append(user.getUserId()).append("\t").append(user.getLoginName()).append("\t").append(user.getContactPerson()).append("\t ").append(user.getPhone()).append("\t").append(user.getEmail()).append("\t").append(user.getRecommendCompany().getCompanyName()). append("\n");
}
//excelBuf.append("Thinking in Java").append("\t").append("2001").append("\t").append("Eckel").append("\n") ;
//excelBuf.append("Spring in action").append("\t").append("2005").append("\t").append("Rod").append("\n") ;
String excelString = excelBuf.toString();
//logger.debug("result excel String: " + excelString);
excelStream = new ByteArrayInputStream(excelString.getBytes(), 0, excelString.length());
return "excel";
}
3.jsp中對應:
<td width="10%">
<input name="Submit" type="button" class="button"
onClick="javaScript:sysReturn('<c:out value="${ctx}"/>/excel.action');"
value="<s:text name="導出excel"/>"> 
</td>
比較簡單好用就不詳細描述了。

2010年7月25日 星期日

Front 5.0

x/Jr2jBfjryWSvWqxwBwaLtKnWCA7Ijq
FzU6DvzEQQwrZhyayyCBlhn6HKVEMvch
aggfUs10qB/Oy5NVklVhE/iuDmqOhPqB
yxzt1BLdgXFBlzBdmfwO0+EFFB0GBc0z
1DROKXS3jgur1Eg9Qe45i0+EPkk03NEp
dDBEJmAK2yuzTUc969tTr2rTxKPq5o88
1WDG8biTBmRyNy4Wb5eeEqAKimCD20Q0
5mWzV5Z/W4korVGMBYGnmTy0YlXMbVEi
TRC4Pjx5YULcl9sXZGL1Zg==

2010年5月20日 星期四

Hibernate Pagination

http://blog.hibernate.org/Bloggers/Everyone/Year/2004/Month/08/Day/14#pagination

public class Page {

private List results;
private int pageSize;
private int page;

public Page(Query query, int page, int pageSize) {

this.page = page;
this.pageSize = pageSize;
results = query.setFirstResult(page * pageSize).setMaxResults(pageSize + 1).list();

}

public boolean isNextPage() {
return results.size() > pageSize;
}

public boolean isPreviousPage() {
return page > 0;
}

public List getList() {
return isNextPage() ? results.subList(0, pageSize - 1) : results;
}

}

2010年4月5日 星期一

Eclipse + Tomcat Luancher

http://osric-life.blogspot.com/2008/08/eclipse-3x-tomcat.html

2010年3月28日 星期日

如何查看MAC檔案夾中的隱藏檔案

Mac OS 是 Unix base 的作業系統,所以有很多東西如果露出來,會讓一般使用者一頭霧水。
如果加上隨便亂砍檔案或資料夾,可能會使得系統慌張(system panic)。

要在 Finder 底下看到所有隱藏的檔案及資料夾,打開終端機後輸入:
代碼:
defaults write com.apple.finder AppleShowAllFiles TRUE

(一行輸入)然後按下 return 鍵送出指令。
接著:
代碼:
killall Finder

然後按下 return 鍵送出指令,此時 Finder 將重新啟動,接著就會全都露。

要恢復全都藏的話,一樣,打開終端機後輸入:
代碼:
defaults write com.apple.finder AppleShowAllFiles FALSE

(一行輸入)然後按下 return 鍵送出指令。
接著:
代碼:
killall Finder

然後按下 return 鍵送出指令,此時 Finder 將重新啟動,接著就會全都藏。

建議甜噗辣透過顯示的指令後,在 Finder 下找到您要的資料夾並製作替身(捷徑),
把替身放到自己習慣的資料夾下,然後把顯示的設定關閉(恢復隱藏)。
這樣之後不但可以方便取用所需的檔案,也可以避免不必要的手誤唷。

(註:請謹慎使用,若因為關閉隱藏的檔案及資料夾設定,加上自己手誤不小心砍殺不該砍的東西,請自行負責)

2010年3月24日 星期三

Print d slides個margin去到盡

http://www.box.net/shared/kqsq8tpvz4
download fineprint
咁就可以print d slides個margin去到盡
安裝序號:
FinePrint 6.12 中文版 (支援 Windows 7 及 32 位元或 64 位元安裝)

5PVCP-FBFZK-5X85S
FYWCW-58CZK-XC85S

2010年3月11日 星期四

JUnit 學習筆記

JUnit 是我們做java testing 的良友, 快~靚~正~
非常好的中文教學~ 又是他~ 良葛格的教學~~

http://caterpillar.onlyfun.net/Gossip/JUnit/JUnitGossip.htm

2010年3月9日 星期二

OS X : Disable Mac Startup Sound

First get the Startup Sound PrefPane from Arcana labs. After you download it, install it. Then go to Preferences >Startup Sound and check the Mute checkbox. Make sure turn on start up volume control is checked as well.