發表文章

目前顯示的是 2008的文章

winxp資料夾存取被拒

加密的可能就沒救了 如果只是權限問題,可以這樣操作: ------------------------------------------------------- 重新取得資料夾擁有權的方法: 1.首先,WIN-XP必須是PRO版的,因為PRO版才有支援[安全性]設定 2.檔案總管,[工具] - [資料夾選項] - [檢視] [使用簡易檔案共用],把這個項目"取消勾選",按[確定] 3.再來,於要取得擁有權的資料夾,按滑鼠右鍵選[內容] 會發現多了一個 [安全性] 的設定頁面 4.[安全性] - [進階] [從父項繼承套用到子物件的全項項目....],取消打勾,按[套用] 會問,要[複製]還是[移除]?,建議選[複製] 切到[擁有者]頁面,新增本機帳號 例如:Administrator(HOST NAME/Administrator) 底下[取代子物件與容器的擁有者],打勾,按[套用] 5.OK!大公告成,已經取得該資料夾的所有權限,可以作[完全控制]了 reference http://www.pczone.com.tw/vbb3/archive/t-93808.html

Tomcat無法啟動原來是JDK1.6惹的禍

將tomcat註冊成服務之後竟然無法啟動了 原來是jdk1.6惹的禍 網路上的解法是將Java_home/bin中的msvcr71.dll 複製到Tomcat_home/bin/裡面,就可以正常啟動了....

Error retrieving feature.xml in Eclipse--Using Software Updates and then Find and install

If you are using Eclispe, maybe you will meet such error after you have installed a Eclipse plugin: Error retrieving "feature.xml". [error in opening zip file] When you open Help->Software Updates->Find and install to install a new plugin, this error will cause that you can not install the new one. What is the problem? Do you remember how did you install the last Eclipse plugin? I guess you download the package and unzip or just put it into Eclipse's directory, without using the Software Updates tool in Help menu in Eclipse. 1. Delete the site.xml file in your Eclipse directory. 2. Run Help->Software Updates->Find and install, the error will not appear. If the plugin has the official site, from where you can install it in Eclipse using Help->Software Updates->Find and install, I sugguest that you should not download it yourself and unzip it into your Eclipse directory. For example, EclipseMe, you can refer to http://eclipseme.org/docs/installEclipseME.

Tomcat並存

到 tomcat_home/conf/server.xml 中修改兩個地方 1. <Server port="8005" shutdown="SHUTDOWN" debug="0"> 預設是 8005,你可以調整成 8006, 8007, ...。 2. <Connector port="8080" .../> ,你必須用不同的 port 才行。

NS2 for Eclipse

Eclipse is an open source development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle. A large and vibrant ecosystem of major technology vendors, innovative start-ups, universities, research institutions and individuals extend, complement and support the Eclipse platform. Set up NS2 for Eclipse under Linux: Download Eclipse SDK Download Eclipse C++ Development Tooling Extract Eclipse SDK to a folder, i.e. /home/username/eclipse Extract Eclipse CDT to the same folder Download NS2 Extract NS2 to a folder, i.e. /home/username/ ns-allinone-2.29 Edit Makefile if necessary (see note below for details) Build NS2 Start Eclipse Choose your ns2 folder as your workspace folder, default:/home/username/ ns-allinone-2.29 Create new C++ Project Select File->New->Project... Select C++->Standard C++ Make Project Click Next Enter ns-2.29 as your project name Click Finish Create a Launch Configura

Windows 連接埠被佔用了怎麼辦?

在commamd line 中下 [ netstat -ano ] 命令 在local address欄位中找到被佔用的 port 跟在 pid 欄位中找到對應的 process id 按 Ctrl+Alt+Del 叫出工作管理員,按下處理程序 tab,在[檢視]-->[顯示欄位]中勾選pid才會顯示pid欄位,這樣就可以知道是誰幹的好事了! 找不到pid的話試著去勾選下面有個 [顯示來自所有使用者的處理程序] 吧!

Srping MultiactionController 使用綁定的設定

跟simpleform controller一樣,先在xml中設定好validator 只要validator的support有支援到在multiaction controller中的command的時候 就會採用該valiodator 接下來新增一個MyMultiacitonController 擴展原本的multiaction controller public class MyMultiactionController extends MultiActionController { //用來儲存binding error的model private Map errorModel = null; //以下是修改原始程式碼的結果 @Override protected void bind(HttpServletRequest request, Object command) throws Exception { logger.debug("Binding request parameters onto MultiActionController command"); ServletRequestDataBinder binder = createBinder(request, command); binder.bind(request); if (getValidators() != null) { for (int i = 0; i < getValidators().length; i++) { if (getValidators()[i].supports(command.getClass())) { ValidationUtils.invokeValidator(getValidators()[i], command, binder.getBindingResult()); } } } if (binder.getBindingResult().hasErrors()) { setErrorModel(binder.getBindingResult().getModel()); } } public Map getErrorModel() { Map map =

管理 resource bundle的好工具

http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=886 好用的工具,終於可以逃脫用沒多久就令人厭倦的native2ascii, 有人寫出了這樣的好工具,真是太方便了。 他可以直接看到我們想要的結果,並且可以同時編輯,棒!!

Windows server 2003變更Terminal Server 的 listening port

廢話就不多說了,直接參考 Reference : http://support.microsoft.com/kb/187623/EN-US/

Android 初學者的論壇

Android 开发者论坛 http://www.mymobisoft.com/bbs/index.php Android很讓人振奮,希望他能夠夠持續讓人振奮!!

Windows server 2003 port 重導

圖片
由於防火牆的限制,沒辦法使用 port 3389 連線,但又不想修改server上遠端登入的port,因為這樣會影響到別人的登入,便想到用轉port的方式,譬如說防火牆可能沒鎖某個port(e.g. 22),那我就把 port 22 的連線都導到 port 3389,問題就解決了。 步驟如下 1.開始-->控制台-->Windows防火牆 2.進階-->設定 3.新增 4.依序將每個項目填入,按下確定後大功告成 Reference : http://support.microsoft.com/kb/317530

Starting Linux

Ubuntu改變了我對linux的偏見,我從他身上看到了曙光,linux當作業系統就是要這樣,爽!!

軟體開發的核心人物

開發軟體的核心人員需要的是經驗,他應該掌握著coding的style與技術的運用,協助在他底下的開發人員能夠讓程式開發的水準達到一個共同的水平以上。 我想到學校的電子公文系統,每個學生從進來到離開,兩年的時間,經歷了時間與經驗的淬煉,程式的技巧一定有所提升,但是我想初期所完成的作品,內容應該會有水準不足的現象發生,如果在一開始能夠有人提升與修改程式碼的內容,我想整個系統的程式水準應該不會差太多才對,有利於長期的維護。

方便的 Instant Rails 懶人包

想要懶懶的安裝Ruby On Rails就到 http://rubyforge.org/projects/instantrails/ 下載一下Instant Rails吧!

rad rails

先到 https://rubyforge.org/ 下載 ruby就可以了(找最多人下載的那個) 先安裝的話 rad rails 好像就會幫你偵測好了 要不然只要到 window --> preference 裡面找 ruby-->Installed Interperters 就可以了 記得要到help裡面去看radrails的使用說明

Ubuntu apt 的 sources.list 產生器

有了這個好東東,我就不用在東打西打了 很方便!! http://www.ubuntu-nl.org/source-o-matic/