<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hope is a good thing.</title>
	<atom:link href="http://matsuda.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://matsuda.wordpress.com</link>
	<description>Blogging about my interesting’s.</description>
	<lastBuildDate>Sun, 05 Apr 2009 06:44:29 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='matsuda.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/531514fee4e7340c41736f82f903ab8c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Hope is a good thing.</title>
		<link>http://matsuda.wordpress.com</link>
	</image>
			<item>
		<title>git configファイルの設定</title>
		<link>http://matsuda.wordpress.com/2009/04/05/git-config%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://matsuda.wordpress.com/2009/04/05/git-config%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 06:42:52 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=104</guid>
		<description><![CDATA[gitのconfig設定

$ git config --global user.name "my name"
$ git config --global user.email myemailaddress@example.com
$ git config --global color.diff auto
$ git config --global color.status auto
$ git config --global color.branch auto
$ git config --global color.interactive auto
$ git config --global --list
user.name=my name
user.email=myemailaddress@example.com
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=auto


Posted in Programming Tagged: git      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=104&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>gitのconfig設定</p>
<pre><code>
$ git config --global user.name "my name"
$ git config --global user.email myemailaddress@example.com
$ git config --global color.diff auto
$ git config --global color.status auto
$ git config --global color.branch auto
$ git config --global color.interactive auto
$ git config --global --list
user.name=my name
user.email=myemailaddress@example.com
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=auto
</pre>
<p></code></p>
Posted in Programming Tagged: git <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=104&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/04/05/git-config%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
		<item>
		<title>Sinatra Framework in Ruby</title>
		<link>http://matsuda.wordpress.com/2009/04/05/sinatra/</link>
		<comments>http://matsuda.wordpress.com/2009/04/05/sinatra/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 06:30:37 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=96</guid>
		<description><![CDATA[Sinatra
Sinatra source code
gemでインストール

$ sudo gem install sinatra
Password:
Successfully installed rack-0.9.1
Successfully installed sinatra-0.9.1.1
2 gems installed
Installing ri documentation for rack-0.9.1...
Installing ri documentation for sinatra-0.9.1.1...
Installing RDoc documentation for rack-0.9.1...
Installing RDoc documentation for sinatra-0.9.1.1...


$ mkdir test
$ cd test/
$ touch test.rb

test.rbを編集

$ emacs test.rb
require 'rubygems'
require 'sinatra'                 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=96&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.sinatrarb.com/">Sinatra</a><br />
<a href="http://github.com/sinatra/sinatra/tree/master">Sinatra source code</a></p>
<p>gemでインストール</p>
<pre><code>
$ sudo gem install sinatra
Password:
Successfully installed rack-0.9.1
Successfully installed sinatra-0.9.1.1
2 gems installed
Installing ri documentation for rack-0.9.1...
Installing ri documentation for sinatra-0.9.1.1...
Installing RDoc documentation for rack-0.9.1...
Installing RDoc documentation for sinatra-0.9.1.1...
</code></pre>
<pre><code>
$ mkdir test
$ cd test/
$ touch test.rb
</code></pre>
<p>test.rbを編集</p>
<pre><code>
$ emacs test.rb
require 'rubygems'
require 'sinatra'                                                                                                       

get '/' do
  'Hello world'
end                                                                                                                     

get '/hello/:name' do |n|
  "Hello #{params[:name]}"
end
</code></pre>
<p>サーバを立ち上げて実行</p>
<pre><code>
$ ruby test.rb
== Sinatra/0.9.1.1 has taken the stage on 4567 for development with backup from Thin
&gt;&gt; Thin web server (v1.0.0 codename That's What She Said)
&gt;&gt; Maximum connections set to 1024
&gt;&gt; Listening on 0.0.0.0:4567, CTRL+C to stop
</code></pre>
<p><a href="http://0.0.0.0:4567/">http://0.0.0.0:4567/</a>にアクセス</p>
Posted in Programming Tagged: ruby <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=96&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/04/05/sinatra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a New Repository at Github</title>
		<link>http://matsuda.wordpress.com/2009/04/05/create-a-new-repository-at-github/</link>
		<comments>http://matsuda.wordpress.com/2009/04/05/create-a-new-repository-at-github/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 05:55:41 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=90</guid>
		<description><![CDATA[githubにリポジトリを作成する
「create a new one」をクリック

リポジトリ情報を埋める

リポジトリが作成されるので、自分の開発環境でセッティング。

表示された通りにやれば問題ない。
以下は実際の記録。

$ mkdir dotfiles
$ cd dotfiles/
matsuda:dotfiles matsuda$ git init
Initialized empty Git repository in /Users/matsuda/dev/dotfiles/.git/
$ touch README
$ git add README
$ git commit -m 'first commit'
[master (root-commit) 933f10d] first commit
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README
$ git remote add origin git@github.com:matsuda/dotfiles.git
$ git push origin master
Counting objects: 3, done.
Writing objects: 100% [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=90&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>githubにリポジトリを作成する</p>
<p>「create a new one」をクリック</p>
<p><img src="http://www.quicksnapper.com/files/4440/15156121449D8474066AE2_m.png" alt="github new Repositories - GitHub" width="349" height="150" /></p>
<p>リポジトリ情報を埋める</p>
<p><img src="http://www.quicksnapper.com/files/4440/166322171749D84738C29A2_m.png" alt="fill repository info - GitHub" width="456" height="244" /></p>
<p>リポジトリが作成されるので、自分の開発環境でセッティング。</p>
<p><img src="http://www.quicksnapper.com/files/4440/72124319449D8473DABE19_m.png" alt="tutorial first commit - GitHub" width="504" height="536" /></p>
<p>表示された通りにやれば問題ない。<br />
以下は実際の記録。</p>
<pre><code>
$ mkdir dotfiles
$ cd dotfiles/
matsuda:dotfiles matsuda$ git init
Initialized empty Git repository in /Users/matsuda/dev/dotfiles/.git/
$ touch README
$ git add README
$ git commit -m 'first commit'
[master (root-commit) 933f10d] first commit
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README
$ git remote add origin git@github.com:matsuda/dotfiles.git
$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 210 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:matsuda/dotfiles.git
 * [new branch]      master -&gt; master
</code></pre>
<p>ただし、公開鍵設定をしていないとpushで失敗する。<br />
公開鍵の設定は<br />
<a href="http://github.com/guides/providing-your-ssh-key">Guides: Providing your SSH Key</a><br />
を参考に。</p>
<hr />
<pre><code>
# $ ssh-keygen -t rsa
$ ssh-keygen
# ひたすらEnter
# Macコマンドでクリップボードにコピー
$ cat id_dsa.pub | pbcopy
</code></pre>
<p>githubの[account]→[SSH Public Keys]にコピペ</p>
<hr />
<p>最後に「Continue」をクリックしたら、完了。</p>
<p><img src="http://www.quicksnapper.com/files/4440/51117235349D84733A769F_m.png" alt="dotfiles at master - GitHub" width="512" height="384" /></p>
Posted in Programming Tagged: git <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=90&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/04/05/create-a-new-repository-at-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>

		<media:content url="http://www.quicksnapper.com/files/4440/15156121449D8474066AE2_m.png" medium="image">
			<media:title type="html">github new Repositories - GitHub</media:title>
		</media:content>

		<media:content url="http://www.quicksnapper.com/files/4440/166322171749D84738C29A2_m.png" medium="image">
			<media:title type="html">fill repository info - GitHub</media:title>
		</media:content>

		<media:content url="http://www.quicksnapper.com/files/4440/72124319449D8473DABE19_m.png" medium="image">
			<media:title type="html">tutorial first commit - GitHub</media:title>
		</media:content>

		<media:content url="http://www.quicksnapper.com/files/4440/51117235349D84733A769F_m.png" medium="image">
			<media:title type="html">dotfiles at master - GitHub</media:title>
		</media:content>
	</item>
		<item>
		<title>Image scaling is not supported on Mac OS X versions prior to 10.5</title>
		<link>http://matsuda.wordpress.com/2009/01/04/image-scaling-is-not-supported-on-mac-os-x-versions-prior-to-105/</link>
		<comments>http://matsuda.wordpress.com/2009/01/04/image-scaling-is-not-supported-on-mac-os-x-versions-prior-to-105/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 04:24:27 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=86</guid>
		<description><![CDATA[ヒレガス本のサンプルを作成していたら、
Image scaling is not supported on Mac OS X versions prior to 10.5
というコンパイルエラー（正確にはwarning）が発生。
ググってみたところ、

永遠ログ: warning: Image scaling is not supported on Mac OS X &#8230;
Re: warning: Image scaling is not supported on Mac OS X versions &#8230;

というのが見つかった。
Scaling属性がProportionally Downになっているのが原因らしい。
どうも10.5からNSButtonに追加された属性のようで、10.4以下をデプロイ環境として含めるとエラーになる。
しかも、そんな属性値がデフォルト値として設定されているのが問題。

ただ、ヒレガス本のサンプルをダウンロードしてソースを見ても、ボタンのScaling属性がProportionally Downになっていて、試しにコンパイルしてもエラーが発生しない。
不思議に思ってよくよく見てみるとボタンの種類がヒレガス本のサンプルはRounded Textured Buttonで、自分のはGradient Buttonだった。
つまりボタンの種類で影響が出たり出なかったりするらしく、Gradient Buttonの場合にエラーが発生した。
ということで、ボタンの種類はGradient ButtonのままでScaring属性をNoneにしたらアラートは出なくなりました。
Posted in Mac, Programming Tagged: Cocoa, Objective-C      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=86&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ヒレガス本のサンプルを作成していたら、<br />
<code>Image scaling is not supported on Mac OS X versions prior to 10.5</code><br />
というコンパイルエラー（正確にはwarning）が発生。</p>
<p>ググってみたところ、</p>
<ul>
<li><a href="http://eien.seesaa.net/article/105846370.html" target="_blank">永遠ログ: warning: Image scaling is not supported on Mac OS X &#8230;</a></li>
<li><a href="http://lists.apple.com/archives/Cocoa-dev/2008/Apr/msg01285.html" target="_blank">Re: warning: Image scaling is not supported on Mac OS X versions &#8230;</a></li>
</ul>
<p>というのが見つかった。</p>
<p>Scaling属性が<strong>Proportionally Down</strong>になっているのが原因らしい。<br />
どうも10.5からNSButtonに追加された属性のようで、10.4以下をデプロイ環境として含めるとエラーになる。<br />
しかも、そんな属性値がデフォルト値として設定されているのが問題。</p>
<p><img src="http://img.skitch.com/20090102-n2un7pjg4a2wm8wgwmirycqwwx.jpg"></p>
<p>ただ、ヒレガス本のサンプルをダウンロードしてソースを見ても、ボタンのScaling属性が<strong>Proportionally Down</strong>になっていて、試しにコンパイルしてもエラーが発生しない。<br />
不思議に思ってよくよく見てみるとボタンの種類がヒレガス本のサンプルは<strong>Rounded Textured Button</strong>で、自分のは<strong>Gradient Button</strong>だった。<br />
つまりボタンの種類で影響が出たり出なかったりするらしく、<strong>Gradient Button</strong>の場合にエラーが発生した。</p>
<p>ということで、ボタンの種類は<strong>Gradient Button</strong>のままでScaring属性を<strong>None</strong>にしたらアラートは出なくなりました。</p>
Posted in Mac, Programming Tagged: Cocoa, Objective-C <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=86&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/01/04/image-scaling-is-not-supported-on-mac-os-x-versions-prior-to-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>

		<media:content url="http://img.skitch.com/20090102-n2un7pjg4a2wm8wgwmirycqwwx.jpg" medium="image" />
	</item>
		<item>
		<title>Today’s memo</title>
		<link>http://matsuda.wordpress.com/2009/01/03/todays-memo-4/</link>
		<comments>http://matsuda.wordpress.com/2009/01/03/todays-memo-4/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 04:23:22 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=84</guid>
		<description><![CDATA[
p.154
Archiveing involves two steps.
First, you need to teach your objects how to archive themselves.
Second, you need to cause the archiving to occur.
A protocol is a list of method declarations.
One protocol is NSCoding.
An NSCorder is an abstraction of a stream of bytes.

p.158
NSData is essentially a buffer of bytes.
Posted in Mac, Programming Tagged: Cocoa, Objective-C   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=84&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4>
p.154</h4>
<p>Archiveing involves two steps.<br />
First, you need to teach your objects how to archive themselves.<br />
Second, you need to cause the archiving to occur.</p>
<p>A protocol is a list of method declarations.<br />
One protocol is NSCoding.<br />
An NSCorder is an abstraction of a stream of bytes.</p>
<h4>
p.158</h4>
<p>NSData is essentially a buffer of bytes.</p>
Posted in Mac, Programming Tagged: Cocoa, Objective-C <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=84&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/01/03/todays-memo-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
		<item>
		<title>Today&#8217;s memo</title>
		<link>http://matsuda.wordpress.com/2009/01/02/todays-memo-3/</link>
		<comments>http://matsuda.wordpress.com/2009/01/02/todays-memo-3/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 04:22:13 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=82</guid>
		<description><![CDATA[
p.119
Attribute of a property
the declaration of a property
@property (attributes) type name;
The attributes can include readwrite(the default) or readonly. A property marked readonly gets no setter method.
To describe how the setter method should work, the attributes can also include one of the following: assign, retain, copy.
- assign(the default) makes a simple assignment happen. assign does not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=82&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4>
p.119</h4>
<p><span style="font-weight:bold;">Attribute of a property</span></p>
<p>the declaration of a property</p>
<p>@property (attributes) type name;</p>
<p>The attributes can include readwrite(the default) or readonly. A property marked readonly gets no setter method.</p>
<p>To describe how the setter method should work, the attributes can also include one of the following: assign, retain, copy.</p>
<p>- assign(the default) makes a simple assignment happen. assign does not retain the new value. If you are dealing with an object type and you are not using the garbege collector, you probably don&#8217;t want assign.<br />
- retain releases the old value and retains the new value. This attribute is used only for Objective-C object types. If you are using the garbage collector, assign and retain are equivalent.<br />
- copy makes a copy of the new value and assigns the variable to the copy. This attribute is often used for properties that are strings.</p>
<p>The attributes can also include nonatomic.</p>
<h4>
p.142</h4>
<p>When designing a class, I tend to think of my instance variables as having one of four possible purposes:</p>
<p>1. Simple attributes.<br />
- Simple attributes are typically numbers or instances of NSString, NSDate, or NSData.<br />
2. To-one relationships.<br />
- To-one relationships are implemented using pointers: An instance of Student has a pointer to an instance of School.<br />
3. Ordered to-many relationships.<br />
- Relationships of this kind are typically implemented using an NSMutableArray.<br />
4. Unordered to-many relationships.<br />
- This order is typically implemented using an NSMutableSet.</p>
<h4>
p.145</h4>
<p>- Key-value cording is a way to read and change a variable&#8217;s value by using its name.<br />
- Key-value observing allow you to be informed when these sorts of changes occur.</p>
Posted in Mac, Programming Tagged: Cocoa, Objective-C <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=82&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/01/02/todays-memo-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
		<item>
		<title>Today&#8217;s memo</title>
		<link>http://matsuda.wordpress.com/2009/01/01/todays-memo-2/</link>
		<comments>http://matsuda.wordpress.com/2009/01/01/todays-memo-2/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 04:19:33 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=79</guid>
		<description><![CDATA[
p.57
Conventions for Creating Initializers
- You do not have to create any initializer in your class if the superclass&#8217;s initializers are sufficient.
- If you decide to create an initializer, you must override the superclass&#8217;s designated initializer.
- If you create multiple initializers, only one does the work -the desinated initializer. All other initializers call the designated initializer.
- [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=79&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4>
p.57</h4>
<p><span style="font-weight:bold;">Conventions for Creating Initializers</span><br />
- You do not have to create any initializer in your class if the superclass&#8217;s initializers are sufficient.<br />
- If you decide to create an initializer, you must override the superclass&#8217;s designated initializer.<br />
- If you create multiple initializers, only one does the work -the desinated initializer. All other initializers call the designated initializer.<br />
- The designated initializer of your class will call its superclass&#8217;s designated initializer.</p>
<h4>
p.73</h4>
<p><span style="font-weight:bold;">Rules Concerning Release</span><br />
- Objects created by alloc, new, copy, or mutableCopy have a retain count of 1 and are not in the autorelease pool.<br />
- If you get an object by any other method, assume that it has a retain count of 1 and is in the autorelease pool. If you do not wish it to be deallocated with the current autorelease pool, you must retain it.</p>
<p><span style="font-weight:bold;">Temporary Objects</span><br />
- the autoreleased object won&#8217;t be released until the event loop ends;</p>
<h4>
p.79</h4>
<p><span style="font-weight:bold;">AppKit framework</span><br />
A control has a target and an action.<br />
- The target is simply a pointerto another object.<br />
- The action is a message(a selector) to send to the target.</p>
<h4>
p.90</h4>
<p>- The action of a control is a selector.</p>
Posted in Mac, Programming Tagged: Cocoa, Objective-C <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=79&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2009/01/01/todays-memo-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
		<item>
		<title>Today&#8217;s memo</title>
		<link>http://matsuda.wordpress.com/2008/12/31/todays-memo/</link>
		<comments>http://matsuda.wordpress.com/2008/12/31/todays-memo/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 04:17:35 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=77</guid>
		<description><![CDATA[- Instance variables that are pointers to other objects are called outlets.
- Methods that can be triggered by user interface objects are called actions.

P.24
- IBOutlet is a macro thac evaluates to nothing.
- IBAction is the same as void.
Posted in Mac, Programming Tagged: Cocoa, Objective-C      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=77&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>- Instance variables that are pointers to other objects are called outlets.<br />
- Methods that can be triggered by user interface objects are called actions.</p>
<h4>
P.24</h4>
<p>- IBOutlet is a macro thac evaluates to nothing.<br />
- IBAction is the same as void.</p>
Posted in Mac, Programming Tagged: Cocoa, Objective-C <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=77&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2008/12/31/todays-memo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
		<item>
		<title>Cocoa Programmig for Mac OS X</title>
		<link>http://matsuda.wordpress.com/2008/12/29/cocoa-programmig-for-mac-os-x/</link>
		<comments>http://matsuda.wordpress.com/2008/12/29/cocoa-programmig-for-mac-os-x/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 04:15:20 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=74</guid>
		<description><![CDATA[通称ヒレガス本を読み始める
Cocoa Programming for Mac OS X
Aaron Hillegass

Posted in Mac, Programming Tagged: Cocoa, Objective-C      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=74&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>通称ヒレガス本を読み始める</p>
<p><a href="http://www.amazon.co.jp/Cocoa-Programming-Mac-OS-X/dp/0321503619%3FSubscriptionId%3D0G91FPYVW6ZGWBH4Y9G2%26tag%3Dkmatsuda-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0321503619" target="_blank">Cocoa Programming for Mac OS X</a><br />
Aaron Hillegass<br />
<a href="http://www.amazon.co.jp/Cocoa-Programming-Mac-OS-X/dp/0321503619%3FSubscriptionId%3D0G91FPYVW6ZGWBH4Y9G2%26tag%3Dkmatsuda-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0321503619" target="_blank"><img src="http://ecx.images-amazon.com/images/I/411tvhio6HL._SL160_.jpg" border="0" alt="0321503619" /></a><img src='http://www.assoc-amazon.jp/e/ir?t=kmatsuda-22&amp;l=ur2&amp;o=9' width='1' height='1' border='0' alt='' /></p>
Posted in Mac, Programming Tagged: Cocoa, Objective-C <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=74&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2008/12/29/cocoa-programmig-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>

		<media:content url="http://ecx.images-amazon.com/images/I/411tvhio6HL._SL160_.jpg" medium="image">
			<media:title type="html">0321503619</media:title>
		</media:content>

		<media:content url="http://www.assoc-amazon.jp/e/ir?t=kmatsuda-22&#38;l=ur2&#38;o=9" medium="image" />
	</item>
		<item>
		<title>MacPortsでLeopardにPostgreSQLをインストール</title>
		<link>http://matsuda.wordpress.com/2008/11/05/postgresql_install/</link>
		<comments>http://matsuda.wordpress.com/2008/11/05/postgresql_install/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 16:07:01 +0000</pubDate>
		<dc:creator>matsuda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[MacPorts]]></category>

		<guid isPermaLink="false">http://matsuda.wordpress.com/?p=12</guid>
		<description><![CDATA[会社でPostgreSQLを使う案件に携わることになったため、今まで敬遠していたPostgreSQLをインストール。
そのメモ。
インストール

$ sudo port install postgresql83-server
---&#62;  Fetching ossp-uuid
---&#62;  Attempting to fetch uuid-1.6.1.tar.gz from ftp://ftp.ossp.org/pkg/lib/uuid/
---&#62;  Verifying checksum(s) for ossp-uuid
---&#62;  Extracting ossp-uuid
---&#62;  Applying patches to ossp-uuid
---&#62;  Configuring ossp-uuid
---&#62;  Building ossp-uuid with target all
---&#62;  Staging ossp-uuid into destroot
---&#62;  Packaging tgz archive for ossp-uuid 1.6.1_0
---&#62;  Installing ossp-uuid 1.6.1_0
---&#62;  Activating [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=12&subd=matsuda&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>会社でPostgreSQLを使う案件に携わることになったため、今まで敬遠していたPostgreSQLをインストール。</p>
<p>そのメモ。</p>
<h3>インストール</h3>
<pre><code>
$ sudo port install postgresql83-server
---&gt;  Fetching ossp-uuid
---&gt;  Attempting to fetch uuid-1.6.1.tar.gz from ftp://ftp.ossp.org/pkg/lib/uuid/
---&gt;  Verifying checksum(s) for ossp-uuid
---&gt;  Extracting ossp-uuid
---&gt;  Applying patches to ossp-uuid
---&gt;  Configuring ossp-uuid
---&gt;  Building ossp-uuid with target all
---&gt;  Staging ossp-uuid into destroot
---&gt;  Packaging tgz archive for ossp-uuid 1.6.1_0
---&gt;  Installing ossp-uuid 1.6.1_0
---&gt;  Activating ossp-uuid 1.6.1_0
---&gt;  Cleaning ossp-uuid
---&gt;  Fetching postgresql83
---&gt;  Attempting to fetch postgresql-8.3.4.tar.bz2 from http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v8.3.4/
---&gt;  Verifying checksum(s) for postgresql83
---&gt;  Extracting postgresql83
---&gt;  Configuring postgresql83
---&gt;  Building postgresql83
---&gt;  Staging postgresql83 into destroot
---&gt;  Packaging tgz archive for postgresql83 8.3.4_0
---&gt;  Installing postgresql83 8.3.4_0

To use the postgresql server, install the postgresql83-server port
---&gt;  Activating postgresql83 8.3.4_0
---&gt;  Cleaning postgresql83
---&gt;  Fetching postgresql83-server
---&gt;  Verifying checksum(s) for postgresql83-server
---&gt;  Extracting postgresql83-server
---&gt;  Configuring postgresql83-server
---&gt;  Building postgresql83-server with target all
---&gt;  Staging postgresql83-server into destroot
---&gt;  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting postgresql83-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql83-server.plist
###########################################################
---&gt;  Packaging tgz archive for postgresql83-server 8.3.4_0
---&gt;  Installing postgresql83-server 8.3.4_0

To create a database instance, after install do
 sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
 sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
 sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'

To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
---&gt;  Activating postgresql83-server 8.3.4_0
---&gt;  Cleaning postgresql83-server
</code></pre>
<h3>PostgreSQLの初期化</h3>
<p>そのあとに上記で表示されたいくつかのコマンドを実行</p>
<pre><code>
$ sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb
$ sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
$ sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale ja_JP.UTF-8.
The default database encoding has accordingly been set to UTF8.
initdb: could not find suitable text search configuration for locale ja_JP.UTF-8
The default text search configuration will be set to "simple".

fixing permissions on existing directory /opt/local/var/db/postgresql83/defaultdb ... ok
creating subdirectories ... ok
selecting default max_connections ... 20
selecting default shared_buffers/max_fsm_pages ... 2400kB/20000
creating configuration files ... ok
creating template1 database in /opt/local/var/db/postgresql83/defaultdb/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.

Success. You can now start the database server using:

    /opt/local/lib/postgresql83/bin/postgres -D /opt/local/var/db/postgresql83/defaultdb
or
    /opt/local/lib/postgresql83/bin/pg_ctl -D /opt/local/var/db/postgresql83/defaultdb -l logfile start

</code></pre>
<h3>デーモンの設定</h3>
<pre><code>
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql83-server.plist
</code></pre>
Posted in Mac, Programming Tagged: Mac, MacPorts <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/matsuda.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/matsuda.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/matsuda.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/matsuda.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/matsuda.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/matsuda.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/matsuda.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/matsuda.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/matsuda.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/matsuda.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=matsuda.wordpress.com&blog=1637279&post=12&subd=matsuda&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://matsuda.wordpress.com/2008/11/05/postgresql_install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56298270f308136556f96d02c95b6336?s=96&#38;d=" medium="image">
			<media:title type="html">matsuda</media:title>
		</media:content>
	</item>
	</channel>
</rss>