顯示具有 howto 標籤的文章。 顯示所有文章
顯示具有 howto 標籤的文章。 顯示所有文章

2023/09/16

如何在 Windows 安裝及格式化新磁碟機

markdown 久違的硬體升級,終於把六年的老機給換新機,手動加了一條 2TB 的 SSD。記錄安裝及格式化新磁碟機的步驟。 ### 磁碟管理 搜尋 "建立及格式化硬碟及磁碟分割" 1. 在 磁碟管理 介面會看到 "不明 未初始化" 的磁碟,這就是準備要進行配置的磁碟

2018/11/30

[Visual Studio] 解決專案找不到參考的元件 System.Web.Mvc, System.Web.Http 的問題

發生的原由


專案是從 Git 儲存庫複製下來的,依照原開發者的專案設置,在載下來之後,重新建置方案會把相關的 packages 從 NuGet 下載回來,通常建置過也不會有什麼大問題,但是就遇到了找不到參考元件的錯誤

遇到的問題


專案是以三層式架構來撰寫

其中在 MVC 的網站專案出現:找不到參考的元件 System.Web.Http

而某一個 Library 專案出現:找不到參考的元件 System.Web.Mvc


錯誤顯示如下:



在專案會看到參考出現驚嘆號



看起來版本好像也不在我的開發本機裡

2016/07/13

[Laravel] 解決 Failed to listen on 0.0.0.0:8000 的問題

第一次遇到 Failed to listen on 0.0.0.0:8000 這個問題

完整的報錯訊息:
Failed to listen on 0.0.0.0:8000  (reason: 嘗試存取通訊端被拒絕,因為存取權限不足。)



1. 先檢查是否有其他 service 用到 8000 的 port

2013/12/08

[Eclipse] 無痛升級至最新版本 Eclipse 4.3 Kepler

今天將 Eclipse 4.2 Juno 升級至 4.3 Kepler

過程簡單, 還是筆記一下, 有機會幫助到需要的朋友們

1. 加入最新釋出版本的 repository url

  1. Window > Preferences > Install/Update > Available Software Sites
  2. 點選 'Add'
  3. 輸入新版本網址 Eclipse 4.3 - Kepler  (http://download.eclipse.org/releases/kepler/)
  4. 點選 'Ok'
2. 檢查更新 : Help > Check for Updates

3. 即可選擇可升級的套件 -- Eclipse SDK (Version: 4.3.1)


4. 繼續 Next 完成安裝/更新步驟, 重新開啟即完成升級!



Reference:
FAQ How do I upgrade Eclipse?

2007/01/30

[Linux] Remote MySQL

Recently, I'm trying to remote access MySQL database from different computer.
Finally I have it work!

Step 1: change setting info in /etc/mysql/my.cnf
  • comment out bind-address = 127.0.0.1 (it's for localhost only)
  • add safe-show-database (for security reason)
  • change server and client mysql default port 3306 to any other port number (e.g. 12345)
Step 2: save my.cnf file and restart MySQL
Step 3: open the specific port you just set
Step 4: test & done!

[Linux] Kubuntu hostname setup

I saw my kubuntu box displayed as "Unknown" server name in my router.
Here is the solution to fix unknown hostname problem:
sudo vi /etc/dhcp3/dhclient.conf
change send host-name "newHostName";

Learned from: Fix hostname unknown in router

2007/01/09

[Linux] Kubuntu Printer Setup

Kubuntu 6.06 Printer Setup

Maybe your system can setup printer correctly, if not, here is the solution:

sudo foomatic-cleanupdrivers
sudo adduser cupsys shadow
sudo dpkg-reconfigure cupsys


Open your browser and type the url:
http://localhost:631/

Step by step to setup your printer:
  1. click "Administraion" Tab
  2. from the listing printers, click to add the correct one
  3. change to "Printers" Tab, click "Set as Default"
  4. Done