2010年12月28日 星期二
2010年11月18日 星期四
Easy Photo Uploader – 安裝後可按右鍵上載圖片到 Facebook
Easy Photo Uploader 是一套免費軟件, 可以幫你在視窗作業系統內快捷地上載大量圖片到 Facebook.
視頻簡介 (法文)
使用方法
安裝 Easy Photo Uploader 後, 用戶可以在視窗內直接在圖片上按右鍵, 然後點選 “Send your photo(s) to Facebook”.
點擊 “Open an existing Facebook account”, 然後按 “Next”. 輸入電郵地址和密碼登入 Facebook.
然後 Facebook 會要求你確認 Easy Photo Uploader 的授權請求. 按 “Allow” 同意請求.
點擊 “Create a new album” 新增相簿, 然後按 “Next”.
輸入有關相簿的資料 (名稱, 地點, 描述和權限), 然後按 “Create”.
再一次按 “Next” 開始上載圖片.
上載完成後, 會出現一份簡短的上載報告. 看完按 “Close” 把它關掉.
軟件性質: 免費軟件
介面語言: 英文
系統支援: 視窗 XP, 2003, Vista, 7
官方網頁: 按這裡!
下載地址: 按這裡!
2010年11月4日 星期四
Windows 7的User Account Control(UAC)
[Forword from gipi的學習筆記-職場觀念、管理、IT部落格]
裝好Windows 7之後,系統常常會跳類似這樣的訊息出來,有點類似當你在網路上下載一個執行檔下來,如果我們有勾選Always ask before opening this file,執行時它會問你是否確定執行,這個功能的目的是避免我們從網路上下載了危險的執行檔後在未經思考的情況下就直接執行了,感覺有點像是被詐騙集團給騙了,沒有仔細思考就把錢透過轉帳給轉出去了,不過大家都知道有詐騙集團很多,也都知道網路上下載的執行檔危險性很高,但我們總是貪圖方便,就會選擇性的忽略某些警示....
UAC這項功能的目的實際上是要幫我們做把關,即使你已經將Always ask before opening this file反勾選,但當你在執行這個網路上下載的程式時,UAC仍然會跳出上頭的提示,問你是否確認要執行,乍看之下這個功能真不錯,幫我們擋掉一些無腦的下一步-->下一步動作,但說真的,如果你要安裝的東西都是一些日常會用到的軟體,如Office、Visual Studio等等,但他一直跳出警示訊息,你應該也是會覺得很煩,這時候我們大概就會想要把這個警示訊息的功能給關掉了,至此,這也是個人電腦資安發生的最主要原因:貪圖方便。
今天撇開資安的問題不看,我們如何把這個警示訊息關閉呢?我們可以依以下步驟:
打開Control Panel-->User Accounts-->Change User Account settings:
執行完後會出現以下這個畫面,裡頭我們可以看到UAC的Notification level分為四個,而預設是在第二高的level,這四個level的簡單描述我們往下看,
Top level:Always notify
進行任何安裝或者各種Windows設定變更時都會跳出警示訊息,下方的建議說,如果你常常安裝不熟悉的軟體或者常造訪不熟悉的網站的話,建議你選用這個層級。
Second level:Default
當執行的程式想要變更電腦的設定時提醒,但在進行Windows設定變更時不要提醒,下方的建議說,如果你使用的軟體都是熟悉的(EX:發行廠商明確的商用軟體),造訪的網站都是熟悉的,你可以使用這個層級。
Third level:Fewer notification
預設狀態下(Second level),當警示訊息出現時,我們的螢幕會變暗(功能上有點類似桌面的遮罩,或稱Secure Desktop),但在Third level則不會。
Lowest level:Never notify
就永遠不警示了,不管做甚麼動作都不會提示,也就是將UAC的功能關閉了,下頭說除非你使用的軟體都不支援UAC,否則不要使用這個選項。
看了一下,這樣的功能是否真能遏阻愈來愈多的網路攻擊呢?我認為是困難的,因為我們往往為了方便,總是會把安全性降低,不管是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:
1325-1558-5864-4422-1094-1126
1325-1958-5864-4422-1094-1178
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
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 | |
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/ |
Windows Vista and Higher | C:\Users\ |
Windows XP | C:\Documents and Settings\ |
2010年8月11日 星期三
SQLyog 破解
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 = 0409ps. 繁體中文 = 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 無法更新的問題:
- Start → Control Panel → Add or Remove Programs → [勾選] Show updates
- 移除已安裝的中文版 KB898461
- 手動下載並安裝英文版 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
FzU6DvzEQQwrZhyayyCBlhn6HKVEMvch
aggfUs10qB/Oy5NVklVhE/iuDmqOhPqB
yxzt1BLdgXFBlzBdmfwO0+EFFB0GBc0z
1DROKXS3jgur1Eg9Qe45i0+EPkk03NEp
dDBEJmAK2yuzTUc969tTr2rTxKPq5o88
1WDG8biTBmRyNy4Wb5eeEqAKimCD20Q0
5mWzV5Z/W4korVGMBYGnmTy0YlXMbVEi
TRC4Pjx5YULcl9sXZGL1Zg==
2010年5月23日 星期日
2010年5月20日 星期四
Hibernate Pagination
2010年4月27日 星期二
2010年4月12日 星期一
2010年4月6日 星期二
2010年4月5日 星期一
2010年3月28日 星期日
如何查看MAC檔案夾中的隱藏檔案
如果加上隨便亂砍檔案或資料夾,可能會使得系統慌張(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 下找到您要的資料夾並製作替身(捷徑),
把替身放到自己習慣的資料夾下,然後把顯示的設定關閉(恢復隱藏)。
這樣之後不但可以方便取用所需的檔案,也可以避免不必要的手誤唷。
(註:請謹慎使用,若因為關閉隱藏的檔案及資料夾設定,加上自己手誤不小心砍殺不該砍的東西,請自行負責)