Monthly Archives: 9月 2008

Log

Drupalでログイン後の表示ページを指定するには

Drupalでユーザがログインしたあとに表示されるページを指定するには、Global Redirect | drupal.orgLogin Destination | drupal.orgを使用する。

Log

プチプチの表と裏

最近プチプチ(エアパッキン) を使う場面が多いんですが

で、いつも「どっちが表でどっちが裏なんだか・・・」と悩むわけですよ。

ついに調べました。ソースはプチプチの川上産業株式会社 質問回答集(プチプチ情報満載)。

結論

どっちでもいい。

  1. けど基盤なんかはプチを外側にしてね。
  2. 梱包しやすいのはプチが内側。
  3. 梱包しやすくて基盤包むときは両面平らな3層品もあるよ。
  4. 対衝撃緩衝性はどっちでも変わらないよ。

やっとすっきりしました。

Log

All in One SEO Pack Pluginを導入

WordPress › All in One SEO Pack « WordPress Pluginsを導入。タイトル・キーワード等のカスタマイズをする。

って、こういうブログに必要あるのかと思うけど・・・。

Log

OmniFocus AppleScriptいろいろ

いろいろといってもまだ少ないですが。

プロジェクト・アクション・子アクションの作成

tell application "OmniFocus"
	tell front document
		set oFolder to folder "オークション"
		tell oFolder
			set oProj to make new project with properties {name:"new proj"}
			tell oProj
				set oTask to make new task with properties {name:"new task", note:"This is a new task."}
				tell oTask
					make new task with properties {name:"child task"}
				end tell
			end tell
		end tell
	end tell
end tell

Inboxにアクションを追加

tell application "OmniFocus"
  tell front document
    make new inbox task with properties {name:"New Task", note:"This is a new task."}
  end tell
end tell

クイックエントリの表示

tell application "OmniFocus"
  tell quick entry
    activate
  end tell
end tell
Log

WP-Syntax pluginを導入

syntaxhighlighter pluginを導入したけど、

  • 必ず言語を指定しないといけない
  • 対応言語が少ない

という理由で取り止め。

代わりにWordPress › WP-Syntax « WordPress Pluginsを導入。どうやらこれが本命らしい。

使い方は<pre lang=’PHP’ line=’1′></pre>でコードを囲む。line属性は行番号を何番から始めるかの指定。

Log

Linode使ってみたいけど空かない・・・

今は評判の悪いらしいCORESERVERなんですが、Linode.com – Virtual Server (VPS) Hostingを使ってみたい。

けど、Fremont, CAのLinode 360がNoneなもんで、どうしたもんか。

Log

ecto3がatom0.3に対応→Livedoor Blogで使用可能に

ecto3.0b54になってatom0.3に対応してくれました。

infinite-sushi.com – pluginsにあるAtom03.zipをダウンロード&解凍して、ダブルクリックしてインストール。(か手動で~/Library/Application Support/ecto3/blogsystems/に置く)

アクセスポイント:http://cms.blog.livedoor.com/atom/
システム:Atom 0.3
ユーザネーム・パスワードはLivedoorのを入力。

とすればオッケー(のはず。まだ投稿してないけどMac-de-cocolog: ecto3.0b54では送受信できたということです)。

CotEditorから投稿できるようにしようかと考えてたところだったので、無駄な努力をせずにすんでよかったですよ。

Log

OmniFocusのコンテキストとiCalカレンダーはどう分類すればいいのか

OmniFocusを使い始めて半月くらい。

コンテキストをどう使って良いのやら分からなかったのが、やっと分かってきましたよ。

つまり近所の酒屋とかを登録して、小包の発送アクションのコンテキストに指定すれば良いんですよね。

で、問題が。

同じコンテキストでも仕事とプライベートがあるのに、コンテキストはiCalカレンダーの仕事関係にバインドしてあるという事が発生したわけですよ。

カレンダーの方の分類を検討すべきなのか、コンテキストの分類をもっと細かくすべきなのか。

現在悩み中・・・。

Log

OminFocusにアクションを作成するAppleScript

OmniFocusに決まった手順の作業を登録するときに毎回同じ事を入力するのは面倒なので、AppleScriptで自動化してみました。

front documentから入れるフォルダを得て、フォルダにプロジェクトを作成、さらにそのプロジェクトにアクションを作成、さらにさらにアクションにサブアクションを作成、というように追加していきます。

tell application "OmniFocus"
  tell front document
    set aFolder to folder "或フォルダ"
    tell aFolder
      set oProj to make new project with properties {name:"プロジェクト名"}
      tell oProj
        set oTask to make new task with properties {name:"アクション1"}
        tell oTask
          make new task with properties {name:"子アクション"}
        end tell
        make new task with properties {name:"アクション2"}
      end tell
    end tell
  end tell
end tell
Get Adobe Flash playerPlugin by wpburn.com wordpress themes