6号機 TOSHIBA dinabook Satellite J60 146C/5, 1.3GB, HDD80GB
Ubuntu 11.10 Oneiric Ocelot
1.Synapticでインストール
ruby(ruby1.8.7.352) ruby1.8-dev
sqlite3, libsqlite3-dev,libsqlite3-ruby
build-essential, curl, git-core, libssl-dev
2.RubyGems 1.8.12: ソースからインストール
http://rubygems.org/pages/download (.tgz) → ~/Downloads展開: rubygems-1.8.12/
$ cd Downloads/rubygems-1.8.12/
$ sudo ruby setup.rb; gem1.8 -v (1.8.12)
$ cd /usr/bin; sudo ln -sf gem1.8 gem; gem -v (1.8.10)
3.Node.js のインストール(ソースから)
最新のバージョン番号を調べる: http://nodejs.org/dist/
$ cd ~/Downloads
$ wget http://nodejs.org/dist/node-v0.6.4.tar.gz
$ tar xzf node-v0.6.4.tar.gz
$ cd node-v0.6.4
$ ./configure
$ make
$ sudo make install; node -v
4.Rails インストール
$ gedit ~/.gemrc
gem: --no-ri --no-rdoc
$ sudo gem install rails; rails -v (Rails 3.1.3)
$ sudo gem install sqlite3
5.動作確認
$ cd ~/rails/; rails new foo --skip-bundle
$ cd foo/; bundle install
$ rails g scaffold user name:string email:string
$ rake db:migrate
$ rails s
http://localhost:3000/users
2011-12-12
2011-06-25
Canonのスキャナ [CanoScan LiDE 200] が使えるようになった。
OS: Ubuntu 10.04
以下すべて端末での操作。
参考にしたサイトです。
http://kutunn.blogspot.com/2011/04/x-sane.html
http://ubuntuforums.org/showpost.php?p=10080046&postcount=20
OS: Ubuntu 10.04
以下すべて端末での操作。
- $ apt-get install libusb-dev build-essential libsane-dev
- $ apt-get install git-core
- $ git clone git://git.debian.org/sane/sane-backends.git
- $ cd sane-backends/
$ make
$ sudo make install - $ sudo gedit /lib/udev/rules.d/40-libsane.rules
一番下に次の2行を追加して保存。
# Canon CanoScan Lide 200
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1905", ENV{libsane_matched}="yes" - $ sudo gedit /etc/sane.d/genesys.conf
一番下に次の2行を追加して保存。
# Canon LiDE 200
usb 0x04a9 0x1905
参考にしたサイトです。
http://kutunn.blogspot.com/2011/04/x-sane.html
http://ubuntuforums.org/showpost.php?p=10080046&postcount=20
2010-11-09
Rails3でプロジェクト作成
Ubuntu 10.04, Rails 3.0.1
1.作業フォルダの作成: Rails
$ cd Rails
2.プロジェクトの作成: gyou
$ rails new gyou
$ cd gyou/
3.scaffoldジェネレータの実行
$rails g scaffold kyak id:integer nam:string yom:string yub:string juu:string ttm:string tel:string kei:string fax:string eml:string chz:string trk:date bun:string poi:integer bik:string
4.テーブル作成
$ rake db:migrate
5.protect_from_forgery
app/controllers/application_controller.rbを編集
protect_from_forgery :only => "index"
6.テーブル確認
$ rails s
ブラウザで確認 http://localhost:3000/kyaks
1.作業フォルダの作成: Rails
$ cd Rails
2.プロジェクトの作成: gyou
$ rails new gyou
$ cd gyou/
3.scaffoldジェネレータの実行
$rails g scaffold kyak id:integer nam:string yom:string yub:string juu:string ttm:string tel:string kei:string fax:string eml:string chz:string trk:date bun:string poi:integer bik:string
4.テーブル作成
$ rake db:migrate
5.protect_from_forgery
app/controllers/application_controller.rbを編集
protect_from_forgery :only => "index"
6.テーブル確認
$ rails s
ブラウザで確認 http://localhost:3000/kyaks
2010-10-31
Railsアップデート
一部エラーが出てるようだが意味不明、railsは3.0.1になってる。
$ sudo gem update rails
[sudo] password for masou:
Updating installed gems
Updating rails
Successfully installed activesupport-3.0.1
Successfully installed builder-2.1.2
... 略 ...
Successfully installed rails-3.0.1
Gems updated: activesupport, builder, i18n, activemodel, rack, rack-test, rack-mount, tzinfo, abstract, erubis, actionpack, arel, activerecord, activeresource, mime-types, polyglot, treetop, mail, actionmailer, thor, railties, bundler, rails
Installing ri documentation for activesupport-3.0.1...
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text=""
... RDOC args: --ri --op /usr/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation
(continuing with the rest of the installation)
Installing ri documentation for i18n-0.4.2...
Installing ri documentation for activemodel-3.0.1...
... 略 ...
Installing ri documentation for bundler-1.0.3...
Installing ri documentation for rails-3.0.1...
File not found: lib
$ sudo gem update rails
[sudo] password for masou:
Updating installed gems
Updating rails
Successfully installed activesupport-3.0.1
Successfully installed builder-2.1.2
... 略 ...
Successfully installed rails-3.0.1
Gems updated: activesupport, builder, i18n, activemodel, rack, rack-test, rack-mount, tzinfo, abstract, erubis, actionpack, arel, activerecord, activeresource, mime-types, polyglot, treetop, mail, actionmailer, thor, railties, bundler, rails
Installing ri documentation for activesupport-3.0.1...
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text=""
... RDOC args: --ri --op /usr/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation
(continuing with the rest of the installation)
Installing ri documentation for i18n-0.4.2...
Installing ri documentation for activemodel-3.0.1...
... 略 ...
Installing ri documentation for bundler-1.0.3...
Installing ri documentation for rails-3.0.1...
File not found: lib
2010-05-29
Railsプロジェクトの作成手順
6号機(元試験用1号機) TOSHIBA dinabook Satellite J60
Ubuntu 10.04
5/23: Matsue.rb(まつえ るびー)にて
8/28: Matsue.rbで修正
Ubuntu 10.04
5/23: Matsue.rb(まつえ るびー)にて
8/28: Matsue.rbで修正
- 作業フォルダの作成: Rails
$ cd Rails - プロジェクトの作成: kyak
$ rails kyak; cd kyak/
--ブラウザで確認
$ ruby script/server
http://localhost:3000/
$ ^C - scaffoldジェネレータの実行
### ruby script\generate scaffold モデル名 カラム名:型 カラム名:型 ...
ruby script/generate scaffold kyak id:integer nam:string yom:string - テーブル作成
$ rake db:migrate
(in /home/masou/Rails/kyak)
== CreateKyaks: migrating ====================================================
-- create_table(:kyaks)
-> 0.0033s
== CreateKyaks: migrated (0.0035s) =========================================== - テーブル確認
- $ ruby script/server
- ブラウザで確認 http://localhost:3000/kyaks
→エラー ActionController::InvalidAuthenticityToken in KyaksController#create - app/controllers/application_controller.rbを編集
protect_from_forgery :only => "index" - ブラウザで再確認→OK
2010-05-27
GIMPで色深度16bit可能らしい
GIMP 2.6で色深度16bitが可能らしい。
ずっと、色深度8bitしかダメだと思いこんでいた。
General Graphics Library(GEGL)が組み込まれているからだそうだ。
設定は、[色]→[GEGLを使用]にチェックを入れる。
..
ずっと、色深度8bitしかダメだと思いこんでいた。
General Graphics Library(GEGL)が組み込まれているからだそうだ。
設定は、[色]→[GEGLを使用]にチェックを入れる。
..
2010-05-08
Access2003でIME制御できない
Windows7+Access2003 で、漢字変換 IME制御がきかない。
[オプション]で [データシート上で IME を制御する]のチェックを外したらうまく行くようになった。
不思議不思議
...
[オプション]で [データシート上で IME を制御する]のチェックを外したらうまく行くようになった。
不思議不思議
...
2010-04-27
PC専用テプラ-SR3900P
1.WinXP(サーバ)にアプリとドライバをInstall→共有を設定
2.Win7にアプリとドライバをInstall。
プリンタ接続の指示が出たら、 NetworkからXPのSR3900Pを開いて
ドライバのInstall完了。
これで、どちらからも印刷できる。
...
2.Win7にアプリとドライバをInstall。
プリンタ接続の指示が出たら、 NetworkからXPのSR3900Pを開いて
ドライバのInstall完了。
これで、どちらからも印刷できる。
...
登録:
投稿 (Atom)