「ありがち」は焼きバジルの濃厚系スープ。でも所謂「がっつり系」店舗(僕がよく行くドミニカとか)と比べると上品な味わい。美味しかったです。女性にも食べやすいかも。

ソーセージやシメジの下に、円形のカマンベールチーズが丸ごと1つ入ってます。これがスープカレーと良く合う。僕はカマンベールチーズが大好きなので満足でした。ただチーズが苦手な人にはこってり過ぎるかも知れませんね。

一灯庵は「クラシック」と「ありがち」を食べたので、今度は「オリジナル」と「2002年冬」にもチャレンジしたいです。
I have a dream today. Let freedom ring! Blog | Twitter | FriendFeed
【礼儀者B型】
礼を重んじます。よい人です。
忠義度: ★★★★☆
マイペース度: ★★★☆☆
お調子者度: ★★☆☆☆
裏蕪x: ★★☆☆☆
#!/usr/bin/ruby -Ks
require 'date'
# 引数の判定
if ARGV[0] == nil && /\d\d\d\d/ != ARGV[0] then
puts "ERROR: 西暦(YYYY)を入力して下さい。"
exit
end
#年のヘッダ表示
print "======= "
print ARGV[0] + " Calenter"
puts " ======="
for m in 1..12 do
#日付オブジェクト作成
cal = Date::new(ARGV[0].to_i,m,1)
#元旦の曜日を抽出
w=cal.wday
#月のヘッダ表示
print "-----------"
print cal.strftime("%b")
print "(" + cal.strftime("%m") + ")"
puts "-----------"
puts "|Sun|Mon|Tue|Wed|Thu|Fri|Sat|"
puts "-----------------------------"
#1日までの空きを埋める
w.times do
print "| "
end
#月によって最終日を変更
case m
when 1,3,5,7,8,10,12
eday = 31
when 2
#うるう年の判定
if cal.leap? == true then
eday = 29
else
eday = 28
end
when 4,5,9,11
eday = 30
end
#カレンダー表示部
for i in 1..eday do
if i<10 then print "| " else print "| " end
print i.to_s
if w==6 then
puts "|"
w=0
else
w=w+1
end
end
#最終日以降の空きを埋める
if w!=0 then
for j in w..6 do
print "| "
end
puts "|"
end
puts "-----------------------------"
end
exit
【開催概要】
日時: 2008/10/25(土) 12:00 〜 18:00(11:30開場)
会場: 北海道情報大学札幌サテライト
主催: 札幌Ruby会議01実行委員会, Ruby札幌
参加費用: 無料
事前登録: 必要(発表される方は登録不要です)
定員: 60-70名程度
ストリーミング: Ustream.tvによる中継を予定しています
懇親会: 懇親スイーツタイムを実施予定です
#!/usr/bin/ruby
mylife = 100 + rand(30)
enlife = 100 + rand(30)
puts "** FIND ENEMY! **"
puts "YOUR LIFE is " + mylife.to_s + ". ENEMY LIFE is " + enlife.to_s + "."
puts
sleep 1
while mylife>0 && enlife>0 do
case rand(2)
when 0 then
puts "YOUR ATTACK!-->"
sleep 1
if rand(9) == 7 then
puts "CRITICAL HIT!!"
dmg = rand(30) + rand(30) + rand(30)
else
dmg = rand(30)
end
enlife = enlife - dmg
if enlife<0 then enlife=0 end
puts " ENEMY DAMAGE " + dmg.to_s + ". ENEMY LIFE=" + enlife.to_s
puts
sleep 1
when 1 then
puts " <--ENEMY ATTACK!"
sleep 1
if rand(9) == 7 then
puts " CRITICAL HIT!!"
dmg = rand(30) + rand(30) + rand(30)
else
dmg = rand(30)
end
mylife = mylife - dmg
if mylife<0 then mylife=0 end
puts "YOUR DAMAGE " + dmg.to_s + ". YOUR LIFE=" + mylife.to_s
puts
sleep 1
end
end
if mylife>0 then
puts "** YOUR WIN **"
else
puts "** YOUR LOSE **"
end
exit


$ sudo aptitude install mysql-server mysql-client libmysql-ruby
$ mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.0.32-Debian_7etch6-log Debian etch distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
+--------------------+
2 rows in set (0.00 sec)
$ su -
# mysqladmin -u root password PASSWORD
# mysqladmin reload
mysql> SHOW VARIABLES LIKE 'character\_set\_%';
+--------------------------+--------+
| Variable_name | Value |
+--------------------------+--------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
+--------------------------+--------+
7 rows in set (0.00 sec)
$ sudo vi /etc/mysql/my.cnf
以下を各セクションに追加
[mysqld]
character-set-server = utf8
collation-server = utf8_general_ci
init-connect = SET NAMES utf8
[mysqldump]
default-character-set = utf8
[mysql]
default-character-set = utf8
$ sudo /etc/init.d/mysql restart
mysql> SHOW VARIABLES LIKE 'character\_set\_%';
+--------------------------+--------+
| Variable_name | Value |
+--------------------------+--------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
+--------------------------+--------+
7 rows in set (0.00 sec)
mysql> create database DATABASENAME;
Query OK, 1 row affected (0.02 sec)
mysql> grant all privileges on DATABASENAME.* to USERNAME@localhost identified by 'PASSWORD' with grant option;
mysql>\q
$ mysql -uUSERNAME -pPASSWORD DATABASENAME
mysql>
mysql>create table morpheme (
id int not null auto_increment primary key,
surface text not null,
segment1 text,
segment2 text,
segment3 text,
practical1 text,
practical2 text,
basic text,
reading text,
pronounce text);
Query OK, 0 rows affected (0.01 sec)
mysql> show fields from morpheme;
+------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+---------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| surface | text | NO | | | |
| segment1 | text | YES | | NULL | |
| segment2 | text | YES | | NULL | |
| segment3 | text | YES | | NULL | |
| practical1 | text | YES | | NULL | |
| practical2 | text | YES | | NULL | |
| basic | text | YES | | NULL | |
| reading | text | YES | | NULL | |
| pronounce | text | YES | | NULL | |
+------------+---------+------+-----+---------+----------------+
10 rows in set (0.00 sec)
#!/usr/bin/ruby -Ku
require 'MeCab'
require 'mysql'
begin
c = MeCab::Tagger.new(ARGV.join(" "))
mysql = Mysql::new('localhost','USERNAME','PASSWORD','DATABASENAME')
dfile = open("data.txt",'r')
dfile.each do |sentence|
sentence.chop!
n = c.parseToNode(sentence)
n = n.next
while n do
res_surface = mysql.query("select id,surface from morpheme where surface='#{Mysql.quote n.surface}'")
if res_surface.num_rows == 0
seg1,seg2,seg3,prac1,prac2,basic,read,pron = n.feature.split(/,/)
if read == nil then read="*" end
if pron == nil then pron="*" end
res_insert = mysql.query("insert into morpheme values(NULL,'#{Mysql::quote n.surface}','#{Mysql::quote seg1}','#{Mysql::quote seg2}','#{Mysql::quote seg3}','#{Mysql::quote prac1}','#{Mysql::quote prac2}','#{Mysql::quote basic}','#{Mysql::quote read}','#{Mysql::quote pron}')")
end
n = n.next
end
end
mysql.close
dfile.close
rescue
print "RuntimeError: ", $!, "\n";
end
mysql> select * from morpheme;
+------+--------------------------+--------------+--------------------------------------+--------------------+------------+--------------------------+-----------------------+--------------------+-----------------------------+
| id | surface | segment1 | segment2 | segment3 | practical1 | practical2 | basic | reading | pronounce |
+------+--------------------------+--------------+--------------------------------------+--------------------+------------+--------------------------+-----------------------+--------------------+-----------------------------+
| 9187 | ハッシュ | 名詞 | 一般 | * | * | * | * | ハッシュ | ハッシュ |
| 9188 | 配列 | 名詞 | サ変接続 | * | * | * | * | 配列 | ハイレツ |
| 9189 | から | 助詞 | 格助詞 | 一般 | * | * | * | から | カラ |
| 9190 | うまく | 形容詞 | 自立 | * | * | 形容詞・アウオ段 | 連用テ接続 | うまい | ウマク |
| 9191 | 値 | 名詞 | 一般 | * | * | * | * | 値 | ネ |
| 9192 | 取れ | 動詞 | 自立 | * | * | 一段 | 未然形 | 取れる | トレ |
* 開催予定日:2008年11月01日(土曜日)
* 会場:南区民センタ(南北線真駒内駅近く)の視聴覚室
* 勉強会プログラム
13:00 開場・受付開始・設営
13:30 開会・オリエンテーション
13:35 60分 セッション1 by 竹迫さん
14:35 10分 休憩
14:45 60分 セッション2 by まっちゃさん
15:45 10分 休憩
15:55 45分 ディスカッション
16:40 終了
17:00 完全撤収
* 参加費:1000円 (学生500円)
#!/usr/bin/ruby -Ku
require "rexml/document"
begin
doc=nil
xfile = open("archive.xml",'r')
doc = REXML::Document.new xfile
xfile.close
doc.elements.each("archive/status") do |elm|
print elm.elements["text"].text+"\n"
end
rescue
print "RuntimeError: ", $!, "\n";
end


$ sudo aptitude install mecab mecab-ipadic mecab-jumandic mecab-utils
$ sudo aptitude install g++
$ mecab -v
mecab of 0.93
$ sudo tar xvzf mecab-ruby-0.93.tar.gz
$ cd ./mecab-ruby-0.93
$ ruby extconf.rb
checking for main() in -lmecab... yes
checking for main() in -lstdc++... yes
checking for mecab.h... yes
creating Makefile
$ make
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_MECAB_H -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -c MeCab_wrap.cpp
gcc -shared -rdynamic -Wl,-export-dynamic -L"/usr/lib" -o MeCab.so MeCab_wrap.o -lruby1.8 -lstdc++ -lmecab -lpthread -ldl -lcrypt -lm -lc
$ sudo make install
/usr/bin/install -c -m 0755 MeCab.so /usr/local/lib/site_ruby/1.8/i486-linux
$ nkf -g test.rb
EUC-JP
$ nkf -w8 test.rb > test2.rb
$ cat test2.rb
#!/usr/bin/ruby
require 'MeCab'
sentence = "太郎はこの本を二郎を見た女性に渡した。"
begin
print MeCab::VERSION, "\n"
c = MeCab::Tagger.new(ARGV.join(" "))
puts c.parse(sentence)
n = c.parseToNode(sentence)
while n do
print n.surface, "\t", n.feature, "\t", n.cost, "\n"
n = n.next
end
print "EOS\n";
rescue
print "RuntimeError: ", $!, "\n";
end
$ ruby ./test2.rb
0.93
太郎 名詞,固有名詞,人名,名,*,*,太郎,タロウ,タロー
は 助詞,係助詞,*,*,*,*,は,ハ,ワ
この 連体詞,*,*,*,*,*,この,コノ,コノ
本 名詞,一般,*,*,*,*,本,ホン,ホン
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
二郎 名詞,固有名詞,一般,*,*,*,二郎,ニロウ,ニロー
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
見 動詞,自立,*,*,一段,連用形,見る,ミ,ミ
た 助動詞,*,*,*,特殊・タ,基本形,た,タ,タ
女性 名詞,一般,*,*,*,*,女性,ジョセイ,ジョセイ
に 助詞,格助詞,一般,*,*,*,に,ニ,ニ
渡し 動詞,自立,*,*,五段・サ行,連用形,渡す,ワタシ,ワタシ
た 助動詞,*,*,*,特殊・タ,基本形,た,タ,タ
。 記号,句点,*,*,*,*,。,。,。
EOS
BOS/EOS,*,*,*,*,*,*,*,* 0
太郎 名詞,固有名詞,人名,名,*,*,太郎,タロウ,タロー 8308
は 助詞,係助詞,*,*,*,*,は,ハ,ワ 9237
この 連体詞,*,*,*,*,*,この,コノ,コノ 9346
本 名詞,一般,*,*,*,*,本,ホン,ホン 13811
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ 13094
二郎 名詞,固有名詞,一般,*,*,*,二郎,ニロウ,ニロー 18835
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ 19322
見 動詞,自立,*,*,一段,連用形,見る,ミ,ミ 23338
た 助動詞,*,*,*,特殊・タ,基本形,た,タ,タ 20625
女性 名詞,一般,*,*,*,*,女性,ジョセイ,ジョセイ 23008
に 助詞,格助詞,一般,*,*,*,に,ニ,ニ 22871
渡し 動詞,自立,*,*,五段・サ行,連用形,渡す,ワタシ,ワタシ 25639
た 助動詞,*,*,*,特殊・タ,基本形,た,タ,タ 25006
。 記号,句点,*,*,*,*,。,。,。 21081
BOS/EOS,*,*,*,*,*,*,*,* 19505
EOS

$ sudo aptitude install vim-ruby
$ sudo gem install vim-ruby
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed vim-ruby-2007.05.07
$ /var/lib/gems/1.8/bin/vim-ruby-install.rb
Possible Vim installation directories:
1) /home/USER/.vim
Please select one (or anything else to specify another directory):
Please enter the full path to your Vim installation directory:
$ vi ~/.vimrc
set nocompatible
syntax on
filetype on
filetype indent on
filetype plugin on

要点がコンパクトにまとまっています。(中級者以上向け)
非常に良く出来た3部作。
ジェダイの帰還のラストが残念です。
最高のSF映画です。
素晴らしい!しかし、ルーカスを恨む
よくできたSF映画です