Oct 12, 2004 [去年の今ごろ]
エントリ名を自動生成
説明
新規にエントリを作成するとき、今まではカテゴリへのURLをクリップボードにコピーしてそれにエントリタイトル(日付など)を付け足してURLを開くという作業があったわけです。つまりURLを手入力して新規エントリを作成していました。
リンクのクリック一つで新規エントリが作成できたら便利だな、と思ったけです。
そこで各カテゴリへのリンクの横にこのページを開いた当日のエントリへのリンクを追加することにしました。
具体的にはcategoriesプラグインの、カテゴリリストを出力するところに新規投稿のリンクを追加します。
<li>〜</li>のある行が4行あるのでそこに
<a href="$blosxom::url/$thisdir/$today.wikieditish"><i>post</i></a>
とリンクを挿入しました。
ところで$todayという当日の日付を取得する処理を冒頭の変数宣言のところに追加します。
my ($mday,$mon,$year) = (localtime(time))[3..5]; $year += 1900; $mon += 1; my $today = $year . $mon . $mday;
これだけです。すると以下のようになります。
Posted at 16:50 - permalink - category: Blosxom - comments(2) - tags: blosxom
Debian:英辞郎を使う
英辞郎の本を買ったのでDebianに入れて使いたい。
とりあえず英辞郎のCDから辞書データをコピーするためにcdromをmountしてみる。
# sudo mount /dev/hdc
mount pointが見つからないとか言われた。そういえばDebianを再インストールしてからcdromをmountしたことが無かったっけ。
# sudo mkdir /media/cdrom0
でmount pointして本題に戻る。
英辞郎の具体的な使用法として、emacsから検索する方法とterminalからzeeコマンドで検索する方法がある。
今回はemacsとsdicを利用してみる。英辞郎のデータの巨大さゆえsdicでは検索が遅い、とsdicのINSTALLに書いてある(検索機能に制限を加えれば高速化できるらしい)がとりあえず使ってから実用的な早さか判断してみる。
sdicの配布ページから sdic_2.1.2-8_all.deb をダウンロードして
# sudo dpkg -i sdic_2.1.2-8_all.deb
でインストール完了。しかしDebianで英辞郎の辞書データを使う方法がわからない。 だからDebianのパッケージを削除して、Debianパッケージじゃない方から設定してみる。
sdic-2.1.3.tar.gz を展開してできたディレクトリにeijirouディレクトリを作る。ここにcdromの辞書データをコピーするのだけど
$ find /cdrom/ -name *.dic /cdrom/pdic/eijiro52.dic /cdrom/pdic/irreg.dic /cdrom/pdic/otojiro.dic /cdrom/pdic/ryaku52.dic /cdrom/pdic/waeiji52.dic (略)
*.dicファイルはあっても、
$ find /cdrom/ -name *.txt /cdrom/pdic/labels.txt /cdrom/pdic/pdicw32.txt /cdrom/readme.txt /cdrom/rmwin.txt
txt形式の辞書ファイルがない(見えない?)。Windows PCで見た際にはあったような気がする。
ここでしばし悩む。
Windowsから英辞郎のCD-ROMを見ると、テキスト形式辞書が自己解凍形式で記録されていた。しかも日本語で。だから*.txtで検索しても出てこないのでした。
英辞郎のテキスト辞書をsdic形式に変換するにはperlと、文字コード変換にqkcが必要らしいのでapt-cacheでqkcをsearchするが見つからない。 http://ftp3.nrc.ca/debian-jp/pool/non-free/q/qkc/でi386のdebをダウンロードして dpkgでインストールする。
Windowsで展開した自己解凍形式のファイルをDebian PCにコピーしてsdic形式に変換する。
$ qkc -e -O EIJIRO52.TXT | perl ~/tmp/sdic-2.1.3/contrib/eijirou.perl > /usr/local/share/dict/eijirou.sdic
後でコマンドの内容を忘れないようにメモ--qkcで文字コードをEUCに変換したものを標準出力に出し、それをsdicのアーカイブに付属している英辞郎辞書変換スクリプトにかけてからsdicの辞書を置くディレクトリに出力する。
emacsから M-x sdic でsdicを起動し、プロンプトに検索したい単語を入れてみたが辞書が見つからないようでエラーが出る。
インストール作業中に辞書ファイルの置き場所を指定することがなかったな、と思い指定する方法を探していると
(setq sdic-eiwa-dictionary-list '((sdicf-client "/usr/local/share/dict/eijirou.sdic")))
のように.emacsに指定すればよいとわかった。emacsを再起動して再度sdicで検索してみるとちゃんと検索結果が出た。ただし、言われていたとおり結果が出るのが遅い。Celeron 500MHzのPCで5秒はかかるだろうか。
検索速度のカイゼンについては今後調べることにしよう。
この記事へのコメント
- Trackback from Tramadol. :
- [Tramadol.]
- Trackback from Ambien. :
- [Ambien.]
- Trackback from Cialis. :
- [Cialis.]
- Trackback from Cialis. :
- [Cialis.]
- Trackback from Cialis. :
- [Cialis.]
- Trackback from Tramadol. :
- [Tramadol.]
- Trackback from Ambien. :
- [Ambien.]
- Trackback from Cialis. :
- [Cialis.]
- Trackback from Phentermine. :
- [Phentermine.]
- Trackback from Tramadol. :
- [Tramadol.]
- Trackback from Cialis. :
- [Cialis.]
- Trackback from Adderall. :
- [Adderall.]
- Trackback from Ambien cr. :
- [Ambien. Ambien overnight. Ambien on line. Ambien cr. Ambien hallucinations dizziness.]
- Trackback from Tramadol for dogs. :
- [Tramadol soma zoloft prozac onlineprescription.md. Tramadol online. Tramadol. Tramadol drug concerns.]
- Trackback from Phentermine capsule. :
- [Phentermine online. Phentermine. Cheapest phentermine online. Phentermine for sale.]
- Trackback from Cialis. :
- [Cialis users. Cialis.]
- Trackback from Advanced book by fioricet guest powered. :
- [Fioricet prescription. Hard to annunciate fioricet codeine. Fioricet. Fioricet side effects. Cheap fioricet. Fioricet info. Fioricet plain pill.]
- Trackback from Ambien overnight. :
- [Where can i buy ambien for next day delivery. Ambien cr addiction. Ambien and the menstrual cycle. Will ambien show up in a urine test.]
- Trackback from Buy cialis. :
- [Generic cialis. Combined cialis viagra. Buy cialis. Cialis.]
- Trackback from Soma. :
- [Soma to florida. Soma. Soma sen arizona. Best online pricing for soma. The strokes is this it soma lyrics free. Soma and addiction. Buy watson brand soma.]
- Trackback from Soma. :
- [Cheap soma. Soma to florida. Soma. Soma online next day.]
- Trackback from Cialis. :
- [Buy cialis. Cialis.]
- Trackback from Ambien online no prescription overnight delivery. :
- [Ambien hallucinations dizziness. Ambien next day delivery where.]
- Trackback from Phentermine. :
- [Mg buy phentermine. Phentermine 37.5. Phentermine risk. Order phentermine. Phentermine diet. Phentermine blue.]
- Trackback from Cialis. :
- [Viagra vs cialis. Buy cialis. Cialis and drug craving. Cialis.]
- Trackback from Ambien sleeping pill. :
- [Ambien verses temacetam. Ambien. Ambien cr addiction. Ambien overnight. Ambien side effects. Sex ambien night.]
- Trackback from Xanax. :
- [Xanax no prescription. Xanax addiction. Xanax. Geniric xanax. Xanax side effects.]
- Trackback from Phentermine no prescription. :
- [Phentermine.]
- Trackback from What is ambien. :
- [Is ambien safe to take during early pregnancy. Free trial version of ambien. Ambien. Ambien and hot flashes.]
- Trackback from Adderall. :
- [How while on adderall xr. Adderall. Buy adderall no prescription.]
- Trackback from Free sample cialis. :
- [Purchase cialis. How cialis works. Taking viagra with cialis. Problems lubricating even with cialis. Cialis. Viagra vs. cialis.]
- Trackback from Fioricet. :
- [Fioricet. Fioricet loratab. What is fioricet.]
- Trackback from How much adderall can you inject. :
- [Snorting adderall. Adult adhd adderall. Adderall xr price. Adderall hematuria. Adderall withdrawal. Snort adderall xr.]
- Trackback from Cialis. :
- [Cialis uk suppliers. Cialis online. Cialis fedex. Buy cialis. Cialis discount american pharmacy. Cialis best price buy online. Cialis.]
- Trackback from Online fioricet w codeine medical consultation. :
- [Fioricet. Cheapest fioricet. Buy fioricet.]
- Trackback from Soma. :
- [Fatal dose of soma carisopradol. Cheap soma. Soma next day delievery. Soma online sales. Soma. Psyche and soma operate as a duality. Buy soma online. Ashes of soma lyrics. Suicide with soma how many does it take.]
- Trackback from Viagra. :
- [Viagra. Uk viagra sales. Taking viagra with cialis. Viagra sale.]
- Trackback from Fioricet. :
- [Fioricet side effects message board. Fioricet. Fioricet online. Fioricet message board.]
- Trackback from Adderall and migraines. :
- [Adderall xr side effects. Adderall xr adverse effects. Adderall.]
- Trackback from Cialis. :
- [Buy cialis. Cheapest cialis. Cialis best price buy online. Cialis.]
- Trackback from Ambien. :
- [Will ambien show up in a urine test. Ambien side effects. Ambien cr.]
- Trackback from Adderall. :
- [Order didrex adderall no prescription. Adderall.]
- Trackback from What color is ambien. :
- [Ambien without a prescription.]
- Trackback from Online pharmacies that offer fioricet. :
- [Online pharmacies that offer fioricet. Webresults fioricet. Fioricet. Order fioricet cash on delivery.]
- Trackback from Cialis. :
- [Cialis fedex. How cialis works.]
- Trackback from Buy adderall no prescription. :
- [Adderall xr side effects. Buy adderall online no prescription needed. Adderall prescription. Adderall.]
- Trackback from Cialis. :
- [Cialis and addiction.]
- Trackback from Tramadol hcl 50mg. :
- [Tramadol sr 100. Buy tramadol. Tramadol.]
- Trackback from Cialis side effects. :
- [Buy cialis phentermine. Cheapest cialis. Taking viagra with cialis. Cialis and drug craving. Cialis.]
- Trackback from Cialis. :
- [Generic cialis. Buy cialis. How cialis works. Cialis lawyers. Cialis.]
- Trackback from Phentermine online. :
- [Low cost phentermine. Phentermine. Buy phentermine online. How does phentermine work. Phentermine forum. Herbal phentermine. Phentermine ingredient.]
- Trackback from Ibuprophen and tramadol. :
- [Buy tramadol. Tramadol discussion. Tramadol.]
- Trackback from Phentermine. :
- [Phentermine info. Phentermine. Phentermine online purchase. Phentermine no prescription. Cheapest phentermine online.]
- Trackback from Order phentermine uk. :
- [Cheap phentermine. Phentermine. Phentermine side effects. Phentermine hcl. Phentermine information.]
- Trackback from Xanax. :
- [Buy xanax. Generic xanax no prescription. Xanax.]
- Trackback from Phentermine. :
- [Pal pay phentermine.]
- Trackback from Ambien side effects. :
- [Ambien dosage. Ambien buy. Ambien sleeping pill. Ambien. Ambien side effects. Ambien cr.]
- Trackback from Phentermine. :
- [Phentermine. Buy cheap phentermine online.]
- Trackback from Cialis. :
- [Cialis canada. Cialis best price buy online. Taking cialis. Cialis drug contraindications. Cialis.]
- Trackback from Buy cheap phentermine online. :
- [Phentermine pregnancy.]
- Trackback from Inject adderall. :
- [Buy adderall.]
- Trackback from Phentermine success story. :
- [Cheap phentermine. Phentermine side effects. Phentermine cheap. Order phentermine. Phentermine blue.]
- Trackback from Phentermine review. :
- [Discount phentermine. Phentermine. Cheapest phentermine. Buy no phentermine prescription. Online phentermine.]
- Trackback from Phentermine. :
- [Phentermine online. Phentermine. Adipex phentermine vs. Phentermine no prescription. Phentermine free shipping. Phentermine information.]
- Trackback from Overnight ambien. :
- [Buy ambien online no prescription. Ambien on line. Ambien online viagra. Ambien cr.]
- Trackback from Buy ambien cr. :
- [Will ambien show up in a urine test.]
- Trackback from Tramadol side effects. :
- [Tramadol 180. Tramadol hcl. Tramadol. Tramacet tramadol hydrochloride. Cheapest tramadol. Cheap tramadol cheap tramadol cheap tramadol. What is tramadol 93.]
- Trackback from Purchasing ambien online. :
- [Ambien. Ambien next day delivery. Generic ambien. Ambien cr side effects. Buy ambien.]
- Trackback from Generic ambien. :
- [Ambien cr and alcohol. Ambien verses temacetam. Ambien. Ambien cr color. Generic ambien. Ambien coupon abate. Will ambien show up in a urine test.]
- Trackback from Adderall xr side effects. :
- [Adderall xr side effects. Dextroamphetamine adderall comparison. Dosage and tolerance to adderall. Adderall. Adderall treatment for bulimia. Adderall and weight loss.]
- Trackback from Adderall. :
- [Adderall.]
- Trackback from Adderall treating anxiety in adults. :
- [Adderall xr side effects. Adderall like effect. Adderall.]
- Trackback from http://www.rc.umd.edu/blog/archives/2006/free-webcams-xxx-live.html :
- [wd702t0 | nude webcam chat credits ]
- real time webcams tits:
- wd702f0 adult webcams http://www.stnersess.edu/images/learning/.cvs/adult-webcams.html free web cam sex chat http://www.isek.iastate.edu/wp/wp/wp-content/uploads/.cache/free-web-cam-sex-chat.html porn live video http://tier.cs.berkeley.edu/IS290Wiki.old/extensions/ajax/porn-live-video.html sexx hidden cam http://www.rc.umd.edu/blog/archives/2006/sexx-hidden-cam.html squirting teen spycam http://tier.cs.berkeley.edu/IS290Wiki.old/extensions/ajax/squirting-teen-spycam.html real time webcams tits http://www.nees.lehigh.edu/wiki/images/0f/real-time-webcams-tits.html nude webcam chat credits http://tier.cs.berkeley.edu/IS290Wiki.old/extensions/ajax/voyeur-cam-blogspot-pee.html live streaming webcams http://www.rc.umd.edu/blog/archives/2006/live-streaming-webcams.html lesbian web cam http://www.rc.umd.edu/blog/archives/2006/lesbian-web-cam.html hide cam in beach http://www.rc.umd.edu/blog/archives/2006/hide-cam-in-beach.html nude girls stripping webcam http://www.ucne.edu/ucne/function/.bak/nude-girls-stripping-webcam.html nude jocks on spycam http://www.stnersess.edu/images/learning/.cvs/nude-jocks-on-spycam.html doing strip on cam http://www.rc.umd.edu/blog/archives/2006/free-shower-webcams.html xxx webcams free http://www.rc.umd.edu/blog/archives/2006/xxx-webcams-free.html free stream tv shemale http://www.isek.iastate.edu/wp/wp/wp-content/uploads/.cache/free-stream-tv-shemale.html asian sex webcam http://www.rc.umd.edu/blog/archives/2006/xxx-webcams-free.html caseys cam nude pics http://www.ucne.edu/ucne/function/.bak/caseys-cam-nude-pics.html gisele webcam nude http://eportfolio.uoregon.edu/morgan/.php/online-watch-porn.html xnxx live cams http://www.isek.iastate.edu/wp/wp/wp-content/uploads/.cache/web-cam-chat-rooms.html china babe cams http://www.rc.umd.edu/blog/archives/2006/china-babe-cams.html fetish webcam http://www.isek.iastate.edu/wp/wp/wp-content/uploads/.cache/fetish-webcam.html free webcams xxx live http://www.rc.umd.edu/blog/archives/2006/free-webcams-xxx-live.html gay teen cam blog http://www.stnersess.edu/images/learning/.cvs/free-webcams-hot.html
- Trackback from Ambien addiction. :
- [Ambien online. Ambien. Canada overnight ambien. Ambien side effects.]
- Trackback from Adderall dosage. :
- [Adderall side effects. Ordering adderall. Inject adderall. Adderall.]
- Trackback from Buy adderall without a prescription. :
- [Adderall xr side effects. Adderall abuse. Adderall no prescription. Adderall.]
- Trackback from Buy wholesale adderall. :
- [Adderall dosage. Kidney pain and adderall. Freebasing adderall. Adderall 15 mg. Adderall. Generic adderall. Snort adderall xr.]
- Trackback from Phentermine. :
- [Phentermine. Adipex phentermine vs. Phentermine no prescription.]
- Trackback from Online meds no prescription ambien. :
- [Ambien without a prescription. Ambien. Suicide ambien. Ambien side effects. Ambien lethal. Buy ambien.]
- Trackback from Ambien. :
- [Ambien sleeping pill. Ambien. Ambien cr.]
- Trackback from Which is better ambien cr or lunestra. :
- [Ambien sleeping pill. Ambien on line. Ambien lethal.]
- Trackback from Ambien. :
- [Is ambien safe to take during early pregnancy. Ambien message board. Ambien. Ambien online. Ambien overnight. Ambien purchase omline. Ambien side effects.]
- Trackback from Ambien. :
- [Ambien manufacturer. Ambien.]
- wholesale bags:
- Debian:英辞郎を使う - O'GANE'S EXPERIENCES
wholesale bags http://www.googletest.com
Posted at 00:46 - permalink - category: コンピュータ - comments(85) - tags: computer
ページを移動。
これまでの記事。
2007 | 12 | 11 | 10 | 9 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2006 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2005 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2004 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2003 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2002 | 12 |
この記事へのコメント
[url=http://www.googletest.com]wholesale bags[/url]