跳到主要內容

安裝Eclipse編輯器

安裝Eclipse編輯器

首先要到Eclipse官方網站(http://www.eclipse.org/downloads/) 下載Eclipse編輯器, Eclipse被IBM收購之後以開放原始碼的方式提供使用者使用,所以它發展了許多外掛程式,現在我們就要利用它的Python外掛編輯器,來開發Python程式。

請下載Eclipse Classic版本。

檔案170MB有點大,等……zzzZZZ。

所下載的檔案eclipse-SDK-3.6.1-win32.zip直接解壓縮就可以使用了,沒錯完全不必安裝,但是如果執行時出現下面訊息,請安裝Java Runtime,( http://www.java.com/zh_TW/download/ ) 目前最新版本是jre-6u23-windows-i586-s.exe,一樣安裝到預設路徑(C:\Program Files\Java\jre6)就可以了。

Eclipse第一次執行時必須設定工作資料夾,如下圖:

如果你看到下圖,恭喜你eclipse安裝成功了。

留言

這個網誌中的熱門文章

系統時間自動校正

在網域內通常為了安全性會防堵所有對外不必要的端口,因此常會在網域內架設一Time Server做為各伺服器時間校對的標準,而此一Time Server需透過UDP 123端口與中央標準局time.stdtime.gov.tw做時間校對,再網域內的其他伺服器則與此Time Server做時間校對。 開啟防火牆NTP端口(UDP 123) 編輯系統登錄檔 [執行] -> regedit 修改NTP Server為中央標準局主機 time.stdtime.gov.tw 並將Type預設值NT5DS改為NTP [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters] "NtpServer"="ComputerName" "Type"="NTP" 修改校對頻率為a (每10分鐘校對一次,5為每5分鐘校對一次) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config] "AnnounceFlags"=dword:0000000a 重啟Windows Time Service net stop w32time && net start w32time 強制立即校對 w32tm /resync /rediscover 補充一: 強制時間同步指令 w32tm /resync /computer:IP /rediscover net time \IP /set /yes net time \\ComputerName /set /yes 若您的主機一直無法同步,也可以採用變通的方法,配合上面的Dos command以工作排程來進行。 補充二: A. 將伺服器類型變更為 NTP。如果要執行這項操作,請依照下列步驟執行: 1. 按一下 [開始],再按一下 [執行],輸入 regedit,然後按一下 [確定]。 2. 找出並按一下下列登錄子機碼: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Ty...

C# 開啟Raw檔案

朋友問raw格式的影像該怎麼用程式show出來看? 因為是影像處理的入門問題,所以當然不能先透過影像處理軟體處理好再丟到程式裡面show出來,剛剛完成,就把重點節錄下來。 重點是Bitmap的圖示矩陣式的,而Raw是線性的的正矩形圖片,長、寬要自己利用開更號方式計算,再一個像素一個像素塞回去。 private void button1_Click(object sender, System.EventArgs e) { int rawSize; Bitmap bm; openFileDialog1.Filter = "RAW files (*.raw)|*.raw|BMP files (*.bmp)|*.bmp|JPEG files (*.jpg)|*.jpg|TIFF files (*.tif)|*.tif"; if (openFileDialog1.ShowDialog()==DialogResult.OK) { if (openFileDialog1.FileName.Substring(openFileDialog1.FileName.Length-3,3) =="raw") { FileStream infile = File.Open(openFileDialog1.FileName, FileMode.Open,FileAccess.Read, FileShare.Read); this.textBox1.Text = openFileDialog1.FileName; rawSize = (int)Math.Sqrt(infile.Length); bm = new Bitmap(rawSize,rawSize); BinaryReader tmpBReader = new BinaryReader(infile); byte buff; for (int i=0; i < rawSize; i++ ) { for (int j=0; j < rawSize; j++ ) { buff = tmpBReader.ReadB...

undefined method `for' for #<' Devise::ParameterSanitizer:0x00007f0e320f79d0 '>

 NoMethodError in Devise::RegistrationsController#edit 用Devise套件作為系統的帳號管理功能,結果在這個檔案出現錯誤. app/controller/application_controller.rb class ApplicationController < ActionController::Base   # Prevent CSRF attacks by raising an exception.   # For APIs, you may want to use :null_session instead.   protect_from_forgery with: :exception   before_action :configure_permitted_parameters , if: :devise_controller ?   protected   def configure_permitted_parameters     devise_parameter_sanitizer . for ( :sign_up ) { | u | u.permit( :username , :email , :password , :password_confirmation , :remember_me , :avatar , :avatar_cache ) }     devise_parameter_sanitizer . for ( :account_update ) { | u | u.permit( :username , :password , :password_confirmation , :current_password , :avatar ) }   end end   只要將for修正成permit,就可以了. def configure_permitted_parameters    devise_parameter_sanitizer .permit ( :sign_up ) ...