2011-01-01から1ヶ月間の記事一覧

Rails3 no.3

Ruby on Rails : http://rubyonrails.org/ Terminal 起動 $ cd rails3 $ rails new customer 割愛 $ cd customer/ $ rails server $ open http://localhost:3000/ "control" + c $ rails generate scaffold infomation id:integer name:string 割愛 $ rake d…

Rails3 no.2

Ruby on Rails : http://rubyonrails.org/ Terminal 起動 $ cd rails3 $ rails new sample 割愛 $ cd sample/ $ rails server $ open http://localhost:3000/ "control" + c $ rails generate controller main 割愛 $ vim app/controllers/main_controller.r…

Rails3 no.1

Ruby on Rails : http://rubyonrails.org/ Terminal 起動 $ mkdir rails3 $ cd rails3 $ rails bookmark3 rails3 では作れないw Usage: rails new APP_PATH [options] Options: [--skip-gemfile] # Don't create a Gemfile -d, [--database=DATABASE] # Prec…

Bundle install

Bundle : http://gembundler.com/ Terminal 起動 $ sudo bundle install Using rake (0.8.7) Using abstract (1.0.0) Using activesupport (3.0.4) Using builder (2.1.2) Using i18n (0.5.0) Using activemodel (3.0.4) Using erubis (2.6.6) Using rack (1…

Rails version up

Ruby on Rails : http://rubyonrails.org/ Terminal 起動 $ rails -v Rails 2.3.5 $ sudo gem install rails Fetching: activesupport-3.0.4.gem (100%) Fetching: builder-2.1.2.gem (100%) Fetching: i18n-0.5.0.gem (100%) Fetching: activemodel-3.0.4.g…

RubyGem version up

RubyGem : http://rubygems.org/ Terminal 起動 $ gem -v 1.3.5 $ sudo gem install rails Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.5.2 Updating RubyGems to 1.5.2 Installing RubyGems 1.5.2 RubyGems 1.5.…

Rails no.2

Ruby on Rails : http://rubyonrails.org/ Terminal 起動 $ mkdir rails $ cd rails $ rails bookmark create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create config/initialize…

Rails no.1

Ruby on Rails : http://rubyonrails.org/ Terminal 起動 $ mkdir rails $ cd rails $ rails first create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create config/initializers …

alias setting

Terminal 起動 $ vim .bash_profile ## alias setting alias cyberduck="open -a Cyberduck" alias dashboard="open -a Dashboard" alias dictionary="open -a Dictionary" alias dvdplayer="open -a DVD\ Player.app" alias eclipse="open -a Eclipse" alia…

Eclipse Install

Eclipse : http://www.eclipse.org/ Terminal 起動 $ mkdir IDE $ cd IDE/ $ wget http://ftp.yz.yamagata-u.ac.jp/pub/eclipse//eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-macosx-cocoa-x86_64.tar.gz Eclipse Classic 3.6.1 ダウン…

Trac Setting

Trac : http://trac.edgewall.org/ Terminal 起動 $ cd /etc/apache2/other/ $ sudo vim trac.conf LoadModule python_module libexec/apache2/mod_python.so SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_f…

Genshi 0.5 Install

Genshi : http://genshi.edgewall.org/ Terminal 起動 $ sudo easy_install --always-unzip Genshi==0.5 Searching for Genshi==0.5 Reading http://pypi.python.org/simple/Genshi/ Reading http://genshi.edgewall.org/ Reading http://genshi.edgewall.or…

easy_install Install

setuptools : http://pypi.python.org/pypi/setuptools easy_install : http://peak.telecommunity.com/dist/ Terminal 起動 $ cd /usr/local/src/ $ sudo wget http://peak.telecommunity.com/dist/ez_setup.py $ sudo python ez_setup.py Downloading http…

mod_python Install

mod_python : http://www.modpython.org/ Terminal 起動 $ cd /usr/local/src/ $ sudo wget http://archive.apache.org/dist/httpd/modpython/mod_python-3.3.1.tgz $ sudo tar jxvf mod_python-3.3.1.tgz $ cd mod_python-3.3.1 $ sudo ./configure $ sudo …

Subversion Setting - 2

Subversion : http://subversion.apache.org/ Terminal 起動 $ sudo htpasswd -c /Users/kudonbec/Repos/.htpasswd admin New password: Re-type new password: Adding password for user admin $ sudo htpasswd /Users/kudonbec/Repos/.htpasswd kudonbec N…

Subversion Setting

Subversion : http://subversion.apache.org/ Terminal 起動 $ cp /Users/kudonbec/Repos/svn/conf/svnserve.conf /Users/kudonbec/Repos/svn/conf/svnserve.conf.orig $ vim /Users/kudonbec/Repos/svn/conf/svnserve.conf [general] anon-access = read au…

Trac create project

Trac : http://trac.edgewall.org/ Terminal 起動 $ mkdir trac $ trac-admin /Users/kudonbec/trac/kudonbec initenv Creating a new Trac environment at /Users/kudonbec/trac/kudonbec Trac will first ask a few questions about your environment in o…

Startup sound is erased

StartupSound.prefPane : http://www5e.biglobe.ne.jp/~arcana/StartupSound/ Terminal 起動 cd Downloads/ wget http://www5e.biglobe.ne.jp/%7Earcana/StartupSound/download/StartupSoundPrefPane11b3.dmg StartupSoundPrefPane.pkg をダブルクリック Con…

Apache activate

Apache : http://httpd.apache.org/ Apple logo => System Preferences... => Sharing チェック : Web Sharing ウェブサーバとして機能しているかを確認 ブラウザアクセス : http://192.168.2.103/~kudonbec/ ブラウザアクセス : http://192.168.2.103/

Trac Install

Trac : http://trac.edgewall.org/ Terminal 起動 $ cd /usr/local/src/ $ sudo wget http://ftp.edgewall.com/pub/trac/Trac-0.11.7.tar.gz $ sudo tar jxvf Trac-0.11.7.tar.gz $ cd Trac-0.11.7 $ sudo python ./setup.py install *1 $ which trac-admin …

Python intor - 03

Python : http://www.python.org/ Terminal 起動 $ cd SVN/Code/Python $ vim LogicalOperator.py #!/usr/bin/python python2.6.1 #!/usr/local/Python3/bin//python3 python3.1.3 # SANSYO-TOKA ENZANSHI a = ["Retention", 3, None] b = ["Retention", 3, …

Source Code management - Subversion

Subversion : http://subversion.apache.org Terminal 起動 $ mkdir Repos $ cd Repos $ svnadmin create svn $ cd $ cd Code/ $ svn import file:///Users/kudonbec/Repos/svn/Code -m "Initial Import." Adding Python Adding Python/hello.py Committed r…

Python intor - 02

Python : http://www.python.org/ Terminal 起動 $ cd Code/Python $ vim hello.py #!/usr/bin/python python2.6.1 #!/usr/local/Python3/bin//python3 python3.1.3 print("Hello", "Python!") # HAIRETU print(" -- HAIRETSU : ZERO start! --") print("Har…

Vim Setting

Vim : http://www.vim.org/ Terminal 起動 vim .vimrc "syntax コントロール :syntax on "カラースキーマの設定 :colorscheme elflord "文字コードの設定 :set encoding=utf-8 :set termencoding=utf-8 :set fileencoding=utf-8 "インクリメンタルサーチを使…

Python intor - 01

Python : http://www.python.org/ Terminal 起動 $ mkdir Code/Python $ cd Code/Python $ which python /usr/bin/python $ python -V Python 2.6.1 $ python3 -V Python 3.1.3 $ vim hello.py #!/usr/bin/python python2.6.1 #!/usr/local/Python3/bin//pyt…

Other Python Install

Python : http://www.python.org/ Terminal 起動 $ cd /usr/local/src/ $ sudo wget http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz $ sudo tar jxvf Python-3.1.3.tgz $ cd Python-3.1.3 $ sudo ./configure --prefix=/usr/local/Python3 $ sudo…

Subversion Install

Subversion : http://subversion.apache.org/ Subversion の最新版を確認 ブラウザアクセス : http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74 Terminal 起動 $ cd /usr/local/src $ sudo wget http://subversion.…

BerkeleyDB Install

BerkeleyDB : http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html Terminal 起動 $ cd /usr/local/src $ sudo wget http://download.oracle.com/berkeley-db/db-5.1.19.tar.gz $ sudo tar jxvf db-5.1.19.tar.gz $ cd db-5.1.19/bu…

Xmarks Install

Xmarks : http://www.xmarks.com/ ブラウザアクセス : http://www.xmarks.com/ "DOWNLOAD" をクリック 該当する "Download Xmarks" をクリック "Xmarks for Safari Installer.pkg" をダブルクリック Continue => Continue => Agree => Install => Close Next…

Wget Install

Wget : http://www.gnu.org/software/wget/ Terminal 起動 $ sudo mkdir /usr/local/src $ cd /usr/local/src $ sudo curl -O http://ftp.gnu.org/pub/gnu/wget/wget-latest.tar.gz $ sudo tar zxvf wget-latest.tar.gz $ cd wget-1.12 $ sudo ./configure $…