git init
をNFS環境の上でやろうとしたときに,何も考えずに
git add .
をかましてしまうと,
# new file: ._tex
などとNFSのlockファイルが登録されてしまうのでありました.
http://ogijun.g.hatena.ne.jp/secondlife/20080306/1204774860
にgitで特定ファイルをグローバルに無視する方法が紹介されていて,とてもよくできているので
こいつにNFSのlockfile形式である ._* を追加することにした.
*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.sw[po] tags ._*
というかんじ.
"We are seeing a needed paradigm shift when it comes to security," says Omer Laviv, CEO of ATHENA GS3, an Israeli-based security company.
"This 'brain-fingerprinting,' or technology which checks for behavioral intent, is much more developed than we think."
Nowhere is the need for cutting-edge security more acute than Israel, which faces constant security threats. For this reason, Israel has become a leader in developing security technology.
Several Israeli-based technology companies are developing detection systems that pick up signs of emotional strain, a psychological red flag that a passenger may intend to commit an act of terror.
柏駅にしかけた異常行動センサはこんなシクミで動いているわけだが,どうなっているんだろうこれ./.jの書き込みでは1月動いて一件も感知してないと,いう話らしいが..
railsが1.2でUbuntuが7.10だった時代に作っていたdb2をつかったアプリをいい加減rails2.2に対応させたので忘れる前にメモ.
| 旧 | 新 | |
| Ubuntu | 7.10 | 8.04 |
| rails | 1.2.6 | 2.2.2 |
| DB2 | 9.5 | 9.5(同じ) |
| gem | 0.84(rubygems.debのやつ) | 1.3.1 |
| ibm_db | 0.94 | 1.0.0 |
そしてActiveScaffoldも使っている.
- とりあえずまずはubuntu8.04をいれる.いれたらdb2exeをいれる.
- ubuntuのrubygemsでgemをがんがん入れていってもいいのだが,gemは古いのでまずupdate.gemをupdateするとrubygems.debでいれてたものは台無しになるので,まずはgemをupdateする.
sudo gem update --system sudo apt-get remove rubygems
- できたらgemでibm_dbとrailsをいれる.
sudo -s . /home/db2inst1/sqllib/db2profile export IBM_DB_DIR=/home/db2inst1/sqllib export IBM_DB_LIB=/home/db2inst1/sqllib/lib32 gem install ibm_db gem install rails -y gem install rake -y
- active_scaffoldをgitからとってくる.
rails2.2では1.2時代に動いてたactive_scaffoldはもう動かない.http://activescaffold.com/ をみるとやりかたが書いてある.
git clone git://github.com/activescaffold/active_scaffold.git vendor/plugins/active_scaffold && rm -rf vendor/plugins/active_scaffold/.git
- config/ 以下をいじる
config/environment.rbに config.action_controller.sessionを追加.
config.action_controller.session = { :session_key => "hogecode", :secret => "
abcdefghijklmnopqrstuvwxyz...." }
rake db:migrateかますと,config/environments/development.rbがおかしいことを
指摘してくれる
$ rake db:migrate --trace ..... ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `cache_template_extensions=' for ActionView::Base:Class /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in `send'
http://d.hatena.ne.jp/zariganitosh/20080621/1214110380 にある
config/environments/development.rbの「config.action_view.cache_template_extensions= false」オプションは推奨されなくなり、何の影響も与えないらしい...。削除してくださいと警告されているので、削除してしまった。(警告なので削除しなくてもサーバーは起動する。)
というかんじ.
- DB2のcreatedbをする.
PAGESIZEが小さいとDB2におこられることがある.
== Initial: migrating ========================================================
-- create_table("contacts", {:force=>true})
-> 0.1195s
-- create_table("inbounds", {:force=>true})
rake aborted!
An error has occurred, this and all later migrations canceled:
ActiveRecord::StatementInvalid: [IBM][CLI Driver][DB2/LINUX] SQL0286N A default table space could not be found with a page size of at least "8192" that authorization ID "DB2INST1" is authorized to use.
しょうがないのでdbをつくりなおす.(db2inst1 ユーザでおこなう)
$ db2 drop db xdmsdev $ db2 create database xdmsdev using codeset utf-8 territory us PAGESIZE 32 K
できたら
rake db:migrate
- rake testで試す.
が,rake test:unitsはibm_db 1.0.0では対応してないようだ.
rake aborted! Task not supported by 'ibm_db'
とりあえずこれでokだった.donrailsの場合はCSRFを自前で対応していたり,いろいろ凝ったことをしているので大変だったが,こっちはあんがいとうまくいった.
virtual boxもためしてはみたのだが,結局他でvmwareをいろいろ使っているし,vmwareからvirtual boxへのHDD変換もかなりの労力なので考えたすえ自腹を切ってみることに.
まあオデンマンが
Buy VMware Fusion, VMware Workstation and More Virtualization Products - VMware
For one day only, save 50% off VMware Fusion, the best way to run Windows on the Mac. Enter the coupon code "CyberMondayDeal"
こんなことをおしえてくれてPSTの12/1限りの価格で40USDで買えたからなんだけど.日本だと12/2の13時くらいまで?
よくみるとvmware workstationも45ドル引きで売ってます.(こっちも個人で持ってるけど,普通ならplayerで十分)
QStarz just unveiled a new GPS data logger / bluetooth GPS receiver which they claim is world’s most powerful. Called BT-Q1000X, this device has the same form factor as some of QStarz’ earlier models but it is more sensitive, has lower power consumption, and has A-GPS support. Here are the impressive features of the new BT-Q1000X. * Adopts MTK II latest chipset with high sensitivity -165dBm and 66-Channel tracking * Ultra lower power consumption up to 42hrs operation * Less than 15-Sec. AGPS fix support: download almanac data to realize faster TTFF and positioning under warm start * Update Rate 1~5Hz changeable by utility provided * G-Mouse + Bluetooth in one: wired and wireless GPS receiver * QZSS, DGPS(WAAS+EGNOS+MSAS) supportこれはもう最強でしょう.欲しいなあ.
よんでジワジワきたpage:
新聞報道をごらんになった皆様へ――「退職勧奨」という名の「退職強要」の実態 - JMIU 日本アイビーエム支部 - 日本アイビーエムに働くものの労働組合のサイトです。なかなかおもしろい.
BGPlay – graphical visualisation of BGP updatesこれもイイ.
仕事でもつかうマイナーなtoolであるsip-testerというパッケージ名でsippを自分がDebianにメンテナでいれています.
これは大変に便利なtoolなのですが,とある事情でUbuntuの上で今は開発をしています.そして今日になってテストすっかーという段階になりました.はて,sippあったっけか? とおもいつつ(Ubuntuをsetupしたのが遥か昔なので記憶の彼方..)タイプしてみると,sip-testerをいれやがれ,という表示が.
slで再現するとこんなわけ.
プログラム 'sl' はまだインストールされていません。 次のように入力することでインストールできます: sudo apt-get install sl -bash: sl: command not found
あたりまえですがubuntuがdebian派生なんだよなあ,と認識した日でした.
そろそろ安定してきたのでsip-testerもver3系にしないとな.それにしても他に誰か使っているんだろうか(w
そこからubuntuにsshしてemacs起動すると
キーバインドが106を101にむりやりmapしたときのになった.
まあ大抵のキーは指が覚えているのだがアンダーバーだけが思いだせず.
結論からいうと106と101は混在させるな,ということで106をひっこぬいて再起動したら問題なくなった.Xをつかわずに手元だけで完結している場合には混在できるだけに少々残念なかんじ.