<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1261376307522255868</id><updated>2024-09-07T03:34:29.943+09:00</updated><category term="Mac"/><category term="Squeak"/><category term="Book"/><category term="iPhone"/><category term="etc"/><category term="Objective-C"/><category term="iPad"/><category term="おすすめ"/><category term="Linux"/><category term="Unix"/><category term="App"/><category term="Command"/><category term="Smalltalk"/><category term="入門"/><category term="Haskell"/><category term="TeX"/><category term="Web"/><category term="Gemstone"/><category term="Java"/><category term="OOL"/><category term="Ruby"/><category term="VisualWorks"/><category term="Windows"/><category term="Audio"/><category term="CCNA"/><category term="Go"/><category term="JavaScript"/><category term="Lisp"/><category term="Macを買ったら何をする？"/><category term="SQL"/><category term="Scheme"/><category term="Seaside"/><category term="グルメ"/><title type='text'>トウヨウリンゴ</title><subtitle type='html'>Mac関連の情報とプログラミングメモ</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>123</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8902823175827005720</id><published>2013-03-07T20:39:00.002+09:00</published><updated>2013-03-07T20:39:30.659+09:00</updated><title type='text'>さらにサイトの引越のおしらせ　</title><content type='html'>&lt;div&gt;
さらにサイトの引越．&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
http://dev-hybrid-works.blogspot.jp&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt;
&lt;/pre&gt;
--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8902823175827005720/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2013/03/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8902823175827005720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8902823175827005720'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2013/03/blog-post.html' title='さらにサイトの引越のおしらせ　'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8078550930454575672</id><published>2012-01-03T10:45:00.001+09:00</published><updated>2012-01-03T10:45:04.579+09:00</updated><title type='text'>引越のお知らせ</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;引越しました．ふたたびりんごの種へ．&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;りんごの種２&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;http://ringoseed2.blogspot.com/&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8078550930454575672/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2012/01/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8078550930454575672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8078550930454575672'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2012/01/blog-post.html' title='引越のお知らせ'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8012244660382123697</id><published>2010-12-31T18:55:00.000+09:00</published><updated>2010-12-31T18:55:04.488+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="etc"/><title type='text'>ふりかえってみると</title><content type='html'>ふりかえってみると今年もいろいろあった年だった．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;修論発表&lt;/li&gt;
&lt;li&gt;就職&lt;/li&gt;
&lt;li&gt;勉強会での発表&lt;/li&gt;
&lt;li&gt;いい椅子を手に入れたこと&lt;/li&gt;
&lt;li&gt;仲間とのiPhone Programmingの勉強&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
他にもいろいろあったと思う．&lt;br /&gt;
感想としては充実はしていたが，少し疲れたかな．&lt;br /&gt;
そして，時間がなかった関係もあったけど，色々な意味でぎりぎりすぎた気がした．&lt;br /&gt;
&lt;br /&gt;
今年は来年の活動にはとても重要であった１年だったと思う．&lt;br /&gt;
&lt;br /&gt;
いろいろなチャンスをくれた方，助言をくれた方など多くの人に感謝したい．&lt;br /&gt;
来年はもっとがんばりますので，よろしくお願いします．&lt;br /&gt;
&lt;br /&gt;
残念だったことを書こうとおもったが，それについては来年の目標としてがんばろうと思う．&lt;br /&gt;
それではよいお年を．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8012244660382123697/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/12/blog-post_31.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8012244660382123697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8012244660382123697'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/12/blog-post_31.html' title='ふりかえってみると'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-3302092535450151126</id><published>2010-12-26T22:39:00.001+09:00</published><updated>2010-12-26T22:41:11.846+09:00</updated><title type='text'>とりあえず，Smalltalk使いたい人へ その２</title><content type='html'>&lt;a href=&quot;http://newringo.blogspot.com/2010/10/smalltalk.html&quot;&gt;前回&lt;/a&gt;Smalltalkのチュートリアルの資料について紹介しましたが，前回の改訂版？を出しましたので（出したのは11月），ご紹介&lt;br /&gt;
&lt;br /&gt;
第26回Smalltalk勉強会&lt;br /&gt;
http://www.smalltalk-users.jp/Home/gao-zhi/dai26kaismalltalkbenkyoukai&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;当日の&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, sans-serif; font-size: 13px;&quot;&gt;&lt;a href=&quot;http://tomoyo.mine.nu/~ringo/smalltalk/tutorial/20101129/smalltalktutorial20101129.pdf&quot; rel=&quot;nofollow&quot; style=&quot;color: #4e7dbf; outline-color: initial; outline-style: none; outline-width: initial;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;資料&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;です&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
かってに配布しちゃっても構いません．&lt;br /&gt;
Keynoteで作成したので，Keynoteが欲しい方がいらっしゃいましたら，ご連絡を．&lt;br /&gt;
もちろん無料でさしげます（←あたりまえw）．&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://newringo.blogspot.com/2010/10/smalltalk.html&quot;&gt;とりあえず，Smalltalk使いたい人へ - トウヨウリンゴ&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/3302092535450151126/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/12/smalltalk.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3302092535450151126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3302092535450151126'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/12/smalltalk.html' title='とりあえず，Smalltalk使いたい人へ その２'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-1313028116615377831</id><published>2010-12-26T22:35:00.002+09:00</published><updated>2010-12-26T22:42:49.322+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Book"/><title type='text'>&quot;もし高校野球の女子マネージャーがドラッカーの『マネジメント』を読んだら&quot;を読んでみた</title><content type='html'>&quot;もし高校野球の女子マネージャーがドラッカーの『マネジメント』を読んだら&quot;を読んでみました．&lt;br /&gt;
&lt;br /&gt;
面白いと思いました．&lt;br /&gt;
マネジメントを分かりやすく，そして様々なものに応用がきくことが具体的にわかります．&lt;br /&gt;
&lt;br /&gt;
アイディアや目標に対する達成させていくプロセス，そして成果に結びつける方法を考えることの重要性が伝わってきます．&lt;br /&gt;
&lt;br /&gt;
このブログを読んでいる人はお分かりの通り私は文章がうまくないので，本の感想もうまく伝えれていない気がしますが，&lt;br /&gt;
一度読んでみるといい本だとは思います．&lt;br /&gt;
&lt;br /&gt;
何かを成し遂げたいと思っている人にはおすすめです．&lt;br /&gt;
私も少し考えが変わりました．&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=ringosseed-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;md=1X69VDGQCMF7Z30FM082&amp;amp;asins=4478012032&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/1313028116615377831/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/12/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1313028116615377831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1313028116615377831'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/12/blog-post.html' title='&quot;もし高校野球の女子マネージャーがドラッカーの『マネジメント』を読んだら&quot;を読んでみた'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-2441895234048444895</id><published>2010-11-24T23:13:00.004+09:00</published><updated>2010-11-24T23:22:38.527+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPad"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><title type='text'>iOSのベータ版から公開版にアップデートする方法</title><content type='html'>iOSのベータ版から公開版にアップデートする方法のご紹介．&lt;br /&gt;
iPhone, iPadにはDFU (Device Firmware Upgrade) モード*1 というのがあります．&lt;br /&gt;
これを利用すると公開版iOSにアップデートできます．&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;iPhone, iPad touchまたはiPadをパソコンに接続&lt;/li&gt;
&lt;li&gt;iPhone, iPad touchまたはiPadの電源を切る&lt;/li&gt;
&lt;li&gt;電源ボタンとホームボタンを10秒間同時押しする&lt;/li&gt;
&lt;li&gt;電源ボタンだけ放し，ホームボタンはパソコンがUSBデバイスを認識するまで（約10秒）押し続ける&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
iTunesから復元を行なうと，公開版iOSがダウンロードされ，インストールされます．&lt;br /&gt;
&lt;br /&gt;
ちなみに私のiPadは，この方法でiOS 4.2.1にしております．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;*1 DFU (Device Firmware Upgrade) モードは，iPhone等のファームウェアのバージョン関係なく，復元可能にする</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/2441895234048444895/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/11/ios.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2441895234048444895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2441895234048444895'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/11/ios.html' title='iOSのベータ版から公開版にアップデートする方法'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-2144844245240773549</id><published>2010-10-31T22:40:00.000+09:00</published><updated>2010-10-31T22:40:15.900+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Smalltalk"/><title type='text'>とりあえず，Smalltalk使いたい人へ</title><content type='html'>本当は本を購入してきちんと勉強してもらいたいけど，とりあえず味見したい人のために，以前作った資料をどうぞ．&lt;br /&gt;
&lt;br /&gt;
http://docs.google.com/viewer?a=v&amp;pid=sites&amp;srcid=c21hbGx0YWxrLXVzZXJzLmpwfGhvbWV8Z3g6MTgyYWZkMmY3NjVhNmRlMg&lt;br /&gt;
&lt;br /&gt;
第24回Smalltalk勉強会(roppongi.st)&lt;br /&gt;
http://sites.google.com/a/smalltalk-users.jp/home/Home/gao-zhi/dai24kaismalltalkbenkyoukai&lt;br /&gt;
&lt;br /&gt;
はやくチュートリアルを完成させたい．&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/2144844245240773549/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/10/smalltalk.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2144844245240773549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2144844245240773549'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/10/smalltalk.html' title='とりあえず，Smalltalk使いたい人へ'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-2048960639034735799</id><published>2010-09-26T09:45:00.000+09:00</published><updated>2010-09-26T09:45:09.574+09:00</updated><title type='text'>iOS 4.2 iPadで3G回線を利用する方法</title><content type='html'>iOS 4.2 iPadをインストールすると「PDP認証に失敗しました」と表示されて3G回線が利用できなくなる．通常はiTunesに接続をして同期を行えば改善されるのだが，Beta OSだとダメのようです．&lt;br /&gt;
せっかくの3G回線が使えなくなってしまうのは非常にもったいないので、調べて見たところ解決方法がありました．&lt;br /&gt;
&lt;br /&gt;
(以下の内容を行い，何らかの問題が発生しても当方は責任を一切責任を負いません).&lt;br /&gt;
以下のサイトでAPNプロファイルを作成します．&lt;br /&gt;
&lt;br /&gt;
http://www.unlockit.co.nz/ &lt;br /&gt;
&lt;br /&gt;
1. サイトにアクセスしたらContinueを選択&lt;br /&gt;
2. Custom APNを選択&lt;br /&gt;
3. &lt;br /&gt;
APN: sbm&lt;br /&gt;
Username: data&lt;br /&gt;
Password: softbank&lt;br /&gt;
を入力．&lt;br /&gt;
(Carrierは入力しなくても大丈夫です)&lt;br /&gt;
4. CreateProfileを選択してプロファイルをインストールします&lt;br /&gt;
5. インストール後，3G回線が接続できない場合は再起動をすると接続ができます&lt;br /&gt;
&lt;br /&gt;
ということで3G接続ができるiPadを持って，外で朝ごはんを食べながらこの記事を書いています．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/2048960639034735799/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/09/ios-42-ipad3g.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2048960639034735799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2048960639034735799'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/09/ios-42-ipad3g.html' title='iOS 4.2 iPadで3G回線を利用する方法'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-539787412427646610</id><published>2010-09-20T07:22:00.002+09:00</published><updated>2010-09-20T07:28:32.348+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>[Command] rsync</title><content type='html'>　更新されたファイルのみバックアップをするツールとしてrsyncがありますが，Mac版のrsyncには-Eというオプションがある．これは，リソースフォークスもコピーするオプションなので，覚えておくといい．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/539787412427646610/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/09/command-rsync.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/539787412427646610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/539787412427646610'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/09/command-rsync.html' title='[Command] rsync'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8120913943769201116</id><published>2010-09-16T21:24:00.002+09:00</published><updated>2010-09-16T21:24:42.958+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix"/><title type='text'>MacPorts 1.9.1</title><content type='html'>MacPortsがいつの間にか1.9.1になっていたので，アップデート．&lt;br /&gt;
&lt;br /&gt;
MacPortsを使っている人は以下のコマンドで更新できます．&lt;br /&gt;
&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt;sudo port selfupdate&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
アップデートされたパッケージを更新&lt;br /&gt;
&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt;sudo port upgrade outdated &lt;/pre&gt;&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8120913943769201116/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/09/macports-191.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8120913943769201116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8120913943769201116'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/09/macports-191.html' title='MacPorts 1.9.1'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-3544037308410746449</id><published>2010-09-04T23:31:00.001+09:00</published><updated>2010-09-04T23:32:15.115+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>[Objective-C] リファレンスカウンタとの戦い</title><content type='html'>以前かいたObjective-Cのリファレンスカウンタについて，再び考える．&lt;br /&gt;
&lt;br /&gt;
[Objective-C] 詳解 Objective-C 2.0 リファレンスカウンタ 不明なところ - トウヨウリンゴ&lt;br /&gt;
http://newringo.blogspot.com/2010/05/objective-c-objective-c-20.html&lt;br /&gt;
&lt;br /&gt;
コードはこちら．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;#import &amp;lt;Foundation/Foundation.h&amp;gt;
#import &amp;lt;stdio.h&amp;gt;

int main(void)
{
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
  NSObject *obj = [[NSObject alloc] init];
  printf(&quot;init: %d\n&quot;,[obj retainCount]);
  [obj retain];
  printf(&quot;retain: %d\n&quot;,[obj retainCount]);
  [obj retain];
  printf(&quot;retain: %d\n&quot;,[obj retainCount]);

  [obj release];
  printf(&quot;release: %d\n&quot;,[obj retainCount]);
  [obj release];
  printf(&quot;release: %d\n&quot;,[obj retainCount]);
  [obj release];
  /* 実行するとエラーになるはずなのだが・・・ */
  printf(&quot;release: %d\n&quot;,[obj retainCount]); 

  [pool drain];

  return 0;
}
&lt;/pre&gt;&lt;br /&gt;
そして，今日わかったのは，詳解 Objective-C 2.0と同じ結果を得るためには，以下のコンパイルをすればよい．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;gcc -framework Foundation &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;-m32&lt;/span&gt;&lt;/b&gt; reference.m&lt;/pre&gt;&lt;br /&gt;
結果&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;init: 1
retain: 2
retain: 3
release: 2
release: 1
objc[2758]: FREED(id): message retainCount sent to freed object=0x103f60
Illegal instruction
&lt;/pre&gt;&lt;br /&gt;
ただ，このオプションで本通りになるというのは，なっとくいかない．&lt;br /&gt;
&lt;br /&gt;
-m32のオプションなしの場合&lt;br /&gt;
&lt;br /&gt;
結果&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;init: 1
retain: 2
retain: 3
release: 2
release: 1
release: 1
&lt;/pre&gt;&lt;br /&gt;
64bit用では，同様の結果が得られないのは，なぜか．&lt;br /&gt;
さっぱりだ．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/3544037308410746449/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/09/objective-c.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3544037308410746449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3544037308410746449'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/09/objective-c.html' title='[Objective-C] リファレンスカウンタとの戦い'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-7101229608919198892</id><published>2010-09-01T07:04:00.002+09:00</published><updated>2010-09-01T07:07:31.405+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>プロセスを起動しているユーザとプロセス数の確認</title><content type='html'>プロセスを起動しているユーザとプロセス数の確認をするため，以下のものをかいてみた．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;$ ps ax | awk &#39;{ print $1 }&#39; | sort -n | uniq -c | awk &#39;{ print $2,$1}&#39;&lt;/pre&gt;&lt;br /&gt;
psコマンドでプロセス確認，awkで１列目だけを取り出し，ソート．&lt;br /&gt;
そのあと，重複行を削除し（重複回数を表示），awkで重複回数とユーザ名を交換して表示する．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/7101229608919198892/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/09/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/7101229608919198892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/7101229608919198892'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/09/blog-post.html' title='プロセスを起動しているユーザとプロセス数の確認'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-1258178639024320180</id><published>2010-08-29T21:54:00.002+09:00</published><updated>2010-09-01T07:08:47.980+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>プログラムの実行ログの確認方法</title><content type='html'>Linuxでプログラムの実行ログの確認する方法は以下のようにすればよい．&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt;$ tail -f /var/log/messages&lt;/pre&gt;&lt;br /&gt;
/var/log/mesagesも重要だけど，個人的には確認する際の，tailコマンドのオプションfの方が重要だったりする．&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/1258178639024320180/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/08/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1258178639024320180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1258178639024320180'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/08/blog-post.html' title='プログラムの実行ログの確認方法'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8788143993092495718</id><published>2010-08-26T06:39:00.003+09:00</published><updated>2010-08-26T06:46:04.085+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gemstone"/><category scheme="http://www.blogger.com/atom/ns#" term="Seaside"/><category scheme="http://www.blogger.com/atom/ns#" term="Smalltalk"/><title type='text'>[Smalltalk] GLASSを起動してみようとしたが，失敗．</title><content type='html'>GLASSを起動してみようとしたが，失敗．&lt;br /&gt;
せっかくサーバを新調したのに，使えないので，ショック．&lt;br /&gt;
&lt;br /&gt;
前回，GLASSをinstallGemstone2.4-Linux.shを使ってインストールしたのだが，Seasideが動作してくれない．Smalltalkのことなのに，すぐに解決できない．情けないorz&lt;br /&gt;
&lt;br /&gt;
installGemstone2.4-Linux.sh入れただけでは，Seasideが動かないのか，きちんとApacheとの連携をしないといけないのか，それとも「ひよっこはVM版を使いなさい！」っということなのか．&lt;br /&gt;
&lt;br /&gt;
失敗したのをメモしようと思う．&lt;br /&gt;
書き出してみると，何かわかるかもしれない．&lt;br /&gt;
&lt;br /&gt;
以下の内容を.bashrcに書き込む．&lt;br /&gt;
source /opt/gemstone/product/seaside/defSeaside&lt;br /&gt;
&lt;br /&gt;
netldiプロセスを起動し，Gemstoneを起動するために，以下のコマンドを実行．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;startnet
startGemstone
&lt;/pre&gt;&lt;br /&gt;
以下のコマンドで，Seasideを実行．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;startSeaside_Hyper 50081&lt;/pre&gt;&lt;br /&gt;
そして以下のエラー&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;_____________________________________________________________________________
|                             Configuration Files                             |
|                                                                             |
| System File: /opt/gemstone/GemStone64Bit2.4.4.1-x86_64.Linux/seaside/data/system.conf
|                                                                             |
| Executable File: /opt/gemstone/GemStone64Bit2.4.4.1-x86_64.Linux/seaside/data/gem.conf
|_____________________________________________________________________________|
Using GEM_TEMPOBJ_CACHE_SIZE 50000 from -T command line option
 _____________________________________________________________________________
|               Gem Configuration Options for process id 15795                |
|_____________________________________________________________________________|

DUMP_OPTIONS = TRUE;
GEM_GCI_LOG_ENABLED = FALSE;
GEM_FREE_FRAME_CACHE_SIZE = -1;
GEM_FREE_FRAME_LIMIT = -1;
GEM_HALT_ON_ERROR = 0;
GEM_IO_LIMIT = 5000;
GEM_KEEP_MIN_SOFTREFS = 0;
GEM_MAX_SMALLTALK_STACK_DEPTH = 1000;
GEM_PRIVATE_PAGE_CACHE_KB = 1000;
GEM_PGSVR_FREE_FRAME_CACHE_SIZE = -1;
GEM_PGSVR_FREE_FRAME_LIMIT = -1;
GEM_PGSVR_UPDATE_CACHE_ON_READ = FALSE;
GEM_RPCGCI_TIMEOUT = 0;
GEM_SOFTREF_CLEANUP_PERCENT_MEM = 50;
GEM_TEMPOBJ_AGGRESSIVE_STUBBING = TRUE;
GEM_TEMPOBJ_CACHE_SIZE = 50000;
GEM_TEMPOBJ_INITIAL_SIZE not used on this platform
GEM_TEMPOBJ_MESPACE_SIZE = 0;
GEM_TEMPOBJ_OOPMAP_SIZE = 0;
GEM_TEMPOBJ_POMGEN_SIZE = 0;
GEM_TEMPOBJ_POMGEN_PRUNE_ON_VOTE = 50;
GEM_TEMPOBJ_POMGEN_SCAVENGE_INTERVAL = 1800;
LOG_WARNINGS = TRUE;
SHR_NUM_FREE_FRAME_SERVERS = 1;
SHR_PAGE_CACHE_NUM_SHARED_COUNTERS = 1900;
SHR_PAGE_CACHE_SIZE_KB = 500000;
SHR_PAGE_CACHE_NUM_PROCS = 1017;
SHR_TARGET_FREE_FRAME_COUNT = -1;
(vmGc spaceSizes: eden init 2000K max 9368K , survivor init 400K max 1568K,
 vmGc    old max 37496K, code max 10000K, perm max 5000K, pom 10 * 4168K = 41680K,
 vmGc    remSet 1008K, meSpace max 47800K oopMapSize 262144 )
 _____________________________________________________________________________
|             GemStone/S64 Object-Oriented Data Management System             |
|               Copyright (C) GemStone Systems, Inc. 1986-2010                |
|                            All rights reserved.                             |
|     covered by Patent Number 6,567,905 Generational Garbage Collector.      |
+-----------------------------------------------------------------------------+
|    PROGRAM: topaz, Linear GemStone Interface (Linked Session)               |
|    VERSION: 2.4.4.1, Tue Jul 13 15:19:49 2010                               |
|      BUILD: gss64_2_4_4_x_branch-23813                                      |
|  BUILT FOR: x86-64 (Linux)                                                  |
|       MODE: 64 bit                                                          |
| RUNNING ON: 6-CPU localhost x86_64 (Linux 2.6.18-194.11.1.el5 #1 SMP Tue Aug|
| 10 19:05:06 EDT 2010) 7480MB                                                |
| PROCESS ID: 15795     DATE: 2010年08月26日 06時38分42秒 JST           |
|   USER IDS: REAL=ringo (500) EFFECTIVE=ringo (500)                          |
|   DATEFORMAT: %Y年%m月%d日 %H時%M分%S秒                               |
|_____________________________________________________________________________|
topaz&gt; topaz&gt; topaz&gt; topaz&gt; topaz&gt; topaz&gt; topaz&gt; topaz&gt; [Info]: LNK client/gem GCI levels = 844/844
[Info]: User ID: DataCurator
[Info]: Repository: seaside
[Info]: Session ID: 1
[Info]: GCI Client Host: &lt;linked&gt;
[Info]: Page server PID: -1
[Info]: Login Time: 2010年08月26日 06時38分42秒.198 JST
[2010年08月26日 06時38分43秒.095 JST] gci login: currSession 1 rpc gem processId -1
successful login
topaz 1&gt; topaz 1&gt; [268 sz:0 cls: 68097 Boolean] true
topaz 1&gt; topaz 1&gt; GemStone Smalltalk Compiler Errors:
   | service server site |
   true &quot;enable for remote breakpoints and profiling&quot;
     ifTrue: [
       GemToGemAnnouncement installStaticHandler.
       Exception
         installStaticException:
           [:ex :cat :num :args | 
             BreakpointNotification signal.
             &quot;needed to avoid infinite loop when resuming from a breakpoint&quot;
             ex _incrementBreakpointsToIgnore. ]
         category: GemStoneError
         number: 6005
         subtype: nil.
      System commitTransaction ifFalse: [ nil error: &#39;Could not commit for GemToGemSignaling&#39; ]].
   
   System transactionMode: #manualBegin.
   
   Exception 
     installStaticException: 
       [:ex :cat :num :args |
         &quot;Run the abort in a lowPriority process, since we must acquire the
          transactionMutex.&quot;
         [
           SeasidePlatformSupport transactionMutex 
 *         ^1                                                         *******
             critical: [ 
               SeasidePlatformSupport doAbortTransaction ].
           System enableSignaledAbortError.
         ] forkAt: Processor lowestPriority.
       ]
     category: GemStoneError
     number: 6009
     subtype: nil.
   System enableSignaledAbortError.
   &quot;This thread is needed to handle the SigAbort exception, when the primary
    thread is blocked on an accept. Assuming default 60 second 
    STN_GEM_ABORT_TIMEOUT, wake up at 30 second intervals.&quot;
   [ 
     [ true ] whileTrue: [ (Delay forSeconds: 30) wait ].
   ] forkAt: Processor lowestPriority.
   
   
   service := SeasideHTTPService onPort: 50081 acceptInForeground: true multiThreading: false.
 *            ^2                                                                               
   GsFile gciLogServer: &#39;Hyper Server started on port &#39;, 50081 printString.
   service start.
   &quot;does not return, unless there&#39;s an error&quot;

1: [1031] undefined symbol
2: [1031] undefined symbol

Now executing the following command saved from &quot;iferr 1&quot;:
   where
Stack is not active
topaz 1&gt; [268 sz:0 cls: 68097 Boolean] true
topaz 1&gt; 

&lt;/pre&gt;&lt;br /&gt;
もし，分かる人がいれば，教えていただけるとうれしいです．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8788143993092495718/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/08/smalltalk-glass.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8788143993092495718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8788143993092495718'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/08/smalltalk-glass.html' title='[Smalltalk] GLASSを起動してみようとしたが，失敗．'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-1383233476597973530</id><published>2010-08-24T00:58:00.001+09:00</published><updated>2010-09-20T07:26:30.776+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Windows 7を購入してみました</title><content type='html'>いろいろなソフトウェアなどの検証のために，Windows 7を購入してみました．&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjspvZssPp0Jqan7lP2HslQj44DkQQLX3OYqG-um2Ep6DjvSXRpRxuCBekqPXG0BY07zMCrMnOtTYIvvF7Anu2wi7RrNL8sE6nKXGfjePXWg80Jaq3d9X5cNub3n9BGmnuBXIq0WID8uf0/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882010-08-21+13.17.44%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjspvZssPp0Jqan7lP2HslQj44DkQQLX3OYqG-um2Ep6DjvSXRpRxuCBekqPXG0BY07zMCrMnOtTYIvvF7Anu2wi7RrNL8sE6nKXGfjePXWg80Jaq3d9X5cNub3n9BGmnuBXIq0WID8uf0/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882010-08-21+13.17.44%EF%BC%89.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
インストールもXPより楽になっています．また，Vistaのようにログインが遅くありません．&lt;br /&gt;
&lt;br /&gt;
言いたいことはそれだけです．はい．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=ringosseed-22&amp;o=9&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=1X69VDGQCMF7Z30FM082&amp;asins=B002ST6D02&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/1383233476597973530/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/08/windows-7.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1383233476597973530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1383233476597973530'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/08/windows-7.html' title='Windows 7を購入してみました'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjspvZssPp0Jqan7lP2HslQj44DkQQLX3OYqG-um2Ep6DjvSXRpRxuCBekqPXG0BY07zMCrMnOtTYIvvF7Anu2wi7RrNL8sE6nKXGfjePXWg80Jaq3d9X5cNub3n9BGmnuBXIq0WID8uf0/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882010-08-21+13.17.44%EF%BC%89.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-784031856914821497</id><published>2010-08-21T12:27:00.003+09:00</published><updated>2010-08-26T06:31:59.649+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gemstone"/><category scheme="http://www.blogger.com/atom/ns#" term="Smalltalk"/><title type='text'>[Smalltalk] GemStone（GLASS）をインストールしてみた</title><content type='html'>サーバを新設したので，GemStone（GLASS）をインストールしてみました．&lt;br /&gt;
&lt;br /&gt;
GemStoneは，OODBと説明されるのですが，OODBというより多人数で使えるSmalltalkの処理系の１つだととらえるとしっくりきます．&lt;br /&gt;
&lt;br /&gt;
インストールしたのは，Cent OS 5.5．&lt;br /&gt;
GemStoneは64bit環境で動作するため，インストールする際にはご注意を．&lt;br /&gt;
&lt;br /&gt;
http://seaside.gemstone.com/downloads.html よりinstallGemstone.shをダウンロードして，実行する．&lt;br /&gt;
このとき，シェルを実行する際は通常ユーザで行ないましょう．&lt;br /&gt;
&lt;br /&gt;
あとは，サーバにインストールして外部に公開する人は，ファイアウォールの設定を変えておきましょう．&lt;br /&gt;
&lt;br /&gt;
GLASS (GemStone Seaside)&lt;br /&gt;
http://seaside.gemstone.com/about.html&lt;br /&gt;
&lt;br /&gt;
ちなみに，公式サイトではVMWareのイメージも配布されているので，すぐに使いたい人はそちらでお試しすることができます．&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/784031856914821497/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/08/gemstoneglass.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/784031856914821497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/784031856914821497'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/08/gemstoneglass.html' title='[Smalltalk] GemStone（GLASS）をインストールしてみた'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-6754990780812204886</id><published>2010-08-05T22:55:00.000+09:00</published><updated>2010-08-05T22:55:05.844+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><title type='text'>[Command] script</title><content type='html'>ターミナル入出力をログとして保存するには，scriptを使いましょう．&lt;br /&gt;
&lt;br /&gt;
任意のディレクトリに移動して，以下のコマンドを入力します．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;$ script test.log
&lt;/pre&gt;&lt;br /&gt;
ログを終了させるには，&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;$ exit
&lt;/pre&gt;を入力します．&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/6754990780812204886/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/08/command-script.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/6754990780812204886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/6754990780812204886'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/08/command-script.html' title='[Command] script'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-3883436777184060456</id><published>2010-07-31T12:32:00.003+09:00</published><updated>2010-07-31T12:47:24.882+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Squeak"/><title type='text'>[Squeak] ボゴソート？</title><content type='html'>同僚にボゴソートというのいうソート？があるのを聞いたので，作ってみた．&lt;br /&gt;
説明を受けた通りに実装したみた．&lt;br /&gt;
&lt;br /&gt;
合っているのかよくわからない・・・．&lt;br /&gt;
最悪計算量，無限大ってどうなんでしょうね．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;Transcript clear.
x := 10.
box := Array new:x.
1 to:x do:[:v | box at:v put: (1 to: 100) atRandom].
box do:[:v |Transcript show:v; show:Character space. ].
Transcript cr.
c := 1.
counter := 1.
[box size = counter] whileFalse:[
  counter := 1.
  box := box shuffle.
  2 to: box size do:[:i | 
    ((box at: i -1) &lt; (box at: i) )
         ifTrue:[ counter := counter + 1]
  ].
 c := c + 1.
].

box do:[:v |Transcript show:v; show:Character space. ].
Transcript cr;show:&#39;loop counter=&#39;; show:c; cr.
&lt;/pre&gt;
&lt;br /&gt;
ソートとよべるのか？　これは，奇跡を待つだけのソートだと思う．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/3883436777184060456/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/squeak_31.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3883436777184060456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3883436777184060456'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/squeak_31.html' title='[Squeak] ボゴソート？'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8611933769467056803</id><published>2010-07-26T23:31:00.002+09:00</published><updated>2010-08-26T06:32:25.571+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Smalltalk"/><category scheme="http://www.blogger.com/atom/ns#" term="Squeak"/><category scheme="http://www.blogger.com/atom/ns#" term="VisualWorks"/><title type='text'>[Smalltalk] Smalltalkの虎の巻</title><content type='html'>sumimさんがSmalltalkのチートシートを書かれたようです．&lt;br /&gt;
個人的には，読む価値がかなりある記事だと思います．&lt;br /&gt;
&lt;br /&gt;
話題の Big Scripting Languages チートシートの Smalltalk の空欄を埋めてみた - Smalltalkのtは小文字です&lt;br /&gt;
&lt;br /&gt;
http://d.hatena.ne.jp/sumim/20100726/p1&lt;br /&gt;
http://d.hatena.ne.jp/sumim/20100727/p1&lt;br /&gt;
&lt;br /&gt;
最初見たとき，ちょっと感動しちゃった．&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;タイトルを虎の巻にしたのは，Eclipseの日本語ローカライズが「チートシート」を「虎の巻」と訳していたからw&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8611933769467056803/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/smalltalk.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8611933769467056803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8611933769467056803'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/smalltalk.html' title='[Smalltalk] Smalltalkの虎の巻'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-8761319910939206612</id><published>2010-07-26T22:28:00.087+09:00</published><updated>2010-08-21T16:55:31.101+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="Squeak"/><title type='text'>[Squeak][Objective-C] へっぽこSqueak SmalltalkユーザによるSqueak Smalltalkで考えるObjective-C その1</title><content type='html'>私はinputはしてもoutputをあまりしてこなかったので，文章を書くのが下手．&lt;br /&gt;
未だに知識がしっかりつかないのは，outputがきちんとできないため．&lt;br /&gt;
&lt;br /&gt;
ということで，需要があるかわかりませんが，へっぽこSqueak SmalltalkユーザによるSqueak Smalltalkで考えるObjective-Cを書いてみます（おそらく大学の身内しか必要ないだろう）． &lt;br /&gt;
&lt;br /&gt;
でも，時間がないので，テキトーなメモです．&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Hello World&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;Transcript cr; show:&#39;Hello World&#39;.
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;// file name &amp;nbsp; -&amp;gt; &amp;nbsp;test.m
#import&amp;lt;foundation/foundation.h&amp;gt;
int main(void){
&amp;nbsp;&amp;nbsp;NSLog(@&quot;Hello World&quot;);
&amp;nbsp;&amp;nbsp;return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;実行方法&lt;/span&gt;&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&quot;Workspaceに記述し，do it&quot;
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
例&lt;br /&gt;
端末で以下のような方法でコンパイル&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;$ gcc -framework Foundation &amp;nbsp;test.m
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;リテラル&lt;/span&gt;&lt;br /&gt;
Objective-CはC言語のリテラルが使えます．&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;コメント&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Squeak Smalltalk&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;ダブルクオーテーションで囲みます．&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Objective-C&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;// または，/* ・・・*/　です．&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;数&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
全てオブジェクトとして扱います．&lt;br /&gt;
&lt;br /&gt;
Objective-C&lt;br /&gt;
Cの基本データ型の数値とNSNumberクラスのインスタンスがある．&lt;br /&gt;
NSIntegerは普通のintまたはlong．&lt;br /&gt;
&lt;br /&gt;
例&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;NSNumber *number = [NSNumber numberWithFloat: 1.0];
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;文字列&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
シングルクオーテーションで囲みます．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&#39;文字列です&#39;
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
C言語の文字列以外に，NSStringのインスタンスの文字列があります．&lt;br /&gt;
&lt;br /&gt;
ダブルクオーテーションで囲み，先頭に@を付けます．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;@&quot;文字列です&quot;
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;代入&lt;/b&gt;&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;nbsp;:=
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;=
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;文末&lt;/b&gt;&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;.&quot;ピリオド&quot;
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;; //セミコロン
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;メッセージ式&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&#39;Ringo no Tane&#39; size. &quot;文字列の長さを求める&quot;
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
[ ] で囲むことにより，メッセージが送信できます．Objective-Cにはメッセージ式による優先順位がない．優先順位は括弧の付け方で決定される．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;[@&quot;Ringo no Tane&quot; length]; //文字列の長さを求める&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;算術演算&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
Smalltalkでは，メッセージ式の優先順位で計算をする．&lt;br /&gt;
&lt;br /&gt;
Objective-C&lt;br /&gt;
C言語と同様な優先順位で行なわれる．&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;カスケード&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;; &quot;セミコロン&quot;&lt;/pre&gt;&lt;br /&gt;
例&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&quot;カスケードなし&quot;
Transcript cr.
Transcript show:&#39;Hello&#39;.

&quot;カスケードあり&quot;
Transcript cr; show:&#39;Hello&#39;.
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
存在しません．&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ブール値&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;true &quot;真，Trueクラスのインスタンス&quot;
false &quot;偽，Falseクラスのインスタンス&quot;
nil &quot;不定&quot;
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
Bool型はブール値を扱うための方&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;YES //真を表す定数 0でない値
NO //偽を表す定数 0
nil //nullのオブジェクトを示す．nilはid型の空ポインタ．値は0．
&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;制御構造&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;if&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
if文はありませんが，ifに相当するメソッドが実装されています．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;1 &amp;gt; 0 ifTrue:[ &amp;nbsp;Transcript show:&#39;Ha Ha Ha!!&#39;; cr. ].
&lt;/pre&gt;Objective-C&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;if(1 &amp;gt; 0){
&amp;nbsp;&amp;nbsp;printf(&quot;Ha ha Ha!\n&quot;);
}
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;while&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;i := 0.
[i&amp;lt;4] whileTrue:[ Transcript cr;show:&#39;hoge&#39;. i := i + 1. ].
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;int i = 0;
while(i&amp;lt;4){
  printf(&quot;hoge\n&quot;);
}
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;for&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalk&lt;br /&gt;
for文のように振る舞うto:, to:do:, to:by:do:があります．&lt;br /&gt;
&lt;br /&gt;
例&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;1 to: by:1 10 do:[:v | Transcript cr;show:v ].
&lt;/pre&gt;&lt;br /&gt;
Objective-C&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;int i;
for(i=1; i&amp;lt;11; i=i+1){
  printf(&quot;%d&quot;,i);
}
&lt;/pre&gt;SmalltalkのイテレータとObjective-C高速列挙&lt;br /&gt;
別の時に説明します．&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;switch&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Squeak Smalltalkにはありません．&lt;br /&gt;
余談，SmallTalk R4.1　http://smalltalk.smalltalk-users.jp/　ならあります．&lt;br /&gt;
&lt;br /&gt;
Objective-C&lt;br /&gt;
略します．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
次回は，クラス定義について書こうと思います．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/8761319910939206612/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/squeakobjective-c-squeak.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8761319910939206612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/8761319910939206612'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/squeakobjective-c-squeak.html' title='[Squeak][Objective-C] へっぽこSqueak SmalltalkユーザによるSqueak Smalltalkで考えるObjective-C その1'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-302995557131766782</id><published>2010-07-26T21:07:00.001+09:00</published><updated>2010-09-16T21:56:29.326+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Book"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>[Objective-C] 基礎から学ぶ iPhoneアプリ開発</title><content type='html'>「Objective-C逆引きハンドブック」の著者である林 晃さんが，新しい本を出されました．&lt;br /&gt;
&lt;br /&gt;
「基礎から学ぶ iPhoneアプリ開発」&lt;br /&gt;
&lt;br /&gt;
昨日本屋で発見．思わず購入．&lt;br /&gt;
&lt;br /&gt;
Core DataについてがAppleのDocumentより分かりやすいことと，具体的なサンプルがあって，良書です．&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=ringosseed-22&amp;o=9&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=1X69VDGQCMF7Z30FM082&amp;asins=486354071X&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Objective-C逆引きハンドブックは，萩原さんの詳解Objective-C 2.0と一緒に持っておくとかなりいい．&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=ringosseed-22&amp;o=9&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=1X69VDGQCMF7Z30FM082&amp;asins=4863540515&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Objective-Cのサンプルコードが，これほど多くまとめられているものは私の知っている限り数少ないと思う．&lt;br /&gt;
特に日本語で，非常に意味のあるサンプルコードばかりなので，Objective-Cをしっかりと使いたいひとにはお勧めだと思います．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/302995557131766782/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/objective-c-iphone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/302995557131766782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/302995557131766782'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/objective-c-iphone.html' title='[Objective-C] 基礎から学ぶ iPhoneアプリ開発'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-2592207693823355586</id><published>2010-07-25T09:04:00.013+09:00</published><updated>2010-07-31T12:46:58.537+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Haskell"/><category scheme="http://www.blogger.com/atom/ns#" term="Scheme"/><category scheme="http://www.blogger.com/atom/ns#" term="Squeak"/><category scheme="http://www.blogger.com/atom/ns#" term="VisualWorks"/><title type='text'>[Squeak][VisualWorks] fold:</title><content type='html'>相変わらず，どうでもいいこと書きます．&lt;br /&gt;
&lt;br /&gt;
http://lists.gforge.inria.fr/pipermail/pharo-project/2010-July/029669.html&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;fold:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
foldと言われると，Squeakでは，inject:into:がすぐに思いつく．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;#(1 2 3) inject:0 into:[:v1 v2 | v1 + v2 ].
&lt;/pre&gt;&lt;br /&gt;
Haskellでは&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;foldl (+) 0 [1, 2, 3]
&lt;/pre&gt;Schemeでは&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;(fold + 0 &#39;(1 2 3))
&lt;/pre&gt;&lt;br /&gt;
私のような初心者プログラマーは，初期値を考えるのが大変なので，ついつい，以下のようなコードを書いてしまいそうになってしまう．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;array := Array with: 1 with: 2 with:3.
x := array first.
xs := array allButFirst.
xs inject:x into:[:v1 :v2 | v1 + v2 ].
&lt;/pre&gt;&lt;br /&gt;
このプログラムでは，allButFirstで，新たに配列を生成しているので，非効率．&lt;br /&gt;
やはり，きちんと初期値を決めなければなりません．&lt;br /&gt;
&lt;br /&gt;
一方，Schemeでは，&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;gosh&gt; (define array &#39;(1 2 3))
gosh&gt; (fold + (car array) (cdr array))
6
&lt;/pre&gt;&lt;br /&gt;
cdrは新たにリストを作成しているわけではないので，心配ありません．&lt;br /&gt;
&lt;br /&gt;
それなら，初期値を考えていれればいいと言われる方もいると思いますが，これが意外と難しい．&lt;br /&gt;
例えば，配列の中から最大値を求めるのを&lt;b&gt;inject:into:&lt;/b&gt;を書こうと思うと・・・．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;array := Array with:-10 with:2 with:100.
array inject:  Float infinity negated into:[:v1 :v2 | v1 max: v2 ].
&lt;/pre&gt;この場合は，マイナス無限大を初期値にする．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ちなみにVisualWorksでは，SequenceableCollection&amp;gt;&amp;gt;fold: が実装されている（さすが！）．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;array := Array with:1 with:2 with:3.
array fold:[:v1 :v2 | v1 + v2 ].
&lt;/pre&gt;&lt;br /&gt;
実装方法は，以下の通り．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;SequenceableCollection&amp;gt;&amp;gt;fold: 
 | size nextValue |
 (size := self size) = 0 ifTrue: [^self emptyCollectionError].
  nextValue := self at: 1.
  2 to: size do:
  [:i | nextValue := binaryBlock value: nextValue value: (self at: i)].
  ^nextValue
&lt;/pre&gt;&lt;br /&gt;
先ほど，プログラムも簡単にかけます．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;array := Array with:-10 with:2 with:100.
array fold:[:v1 :v2 | v1 max: v2 ].
&lt;/pre&gt;&lt;br /&gt;
ただし，SequenceableCollection&amp;gt;&amp;gt;fold: では，空のコレクションが与えられると，エラーになるので，注意が必要．エラーを発生させたくないなら，inject:into:を使うべき．&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;#() inject: 0 into:[:v1 :v2 | v1 + v2 ]　&quot;0が，かえってくる&quot;
&lt;/pre&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;gosh&gt; (fold +  0 &#39;())
0
&lt;/pre&gt;&lt;br /&gt;
ふー，つかれた．&lt;br /&gt;
&lt;br /&gt;
素人の意見としては，fold:が実装されるのは賛成．&lt;br /&gt;
みなさんはどう思われますか？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr/&gt;さらに，どうてもいいこと．&lt;br /&gt;
&lt;br /&gt;
今回のでVisualWorksすごい！ってと思いましたが，Squeakユーザなので，操作がなかなか慣れない．&lt;br /&gt;
&lt;br /&gt;
もともとHaskell,Schemeは，ほどんと書けなかったのですが，さらに書けなくなりましたorz&lt;br /&gt;
&lt;br /&gt;
やっぱりReal Worldを購入すべきなのだろう．&lt;br /&gt;
英語本はもっているけど，読む時間がかかるので，やっぱり翻訳版を購入しようかな（でも高い・・・）．&lt;br /&gt;
&lt;i&gt;学生の頃に，翻訳本が出るとは思わなかったので，ついつい買ってしまった．&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
プログラミング言語の本を献本でもらえる人っていいなって思うけど，感想書くのが大変そう・・・．</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/2592207693823355586/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/squeakvisualworks-fold.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2592207693823355586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/2592207693823355586'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/squeakvisualworks-fold.html' title='[Squeak][VisualWorks] fold:'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-6220529521407552950</id><published>2010-07-24T20:35:00.002+09:00</published><updated>2010-07-24T20:43:27.649+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>日本語変換</title><content type='html'>高階関数を入力しようとおもったら，ことえりの変換では「後悔関数」．&lt;br /&gt;
がっかりだorz&lt;br /&gt;
ATOKはどうなんだろう．&lt;br /&gt;
&lt;br /&gt;
iPhone, iPadもきちんと変換できなかった．&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/6220529521407552950/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/blog-post_24.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/6220529521407552950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/6220529521407552950'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/blog-post_24.html' title='日本語変換'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-1465788205747567888</id><published>2010-07-22T19:31:00.002+09:00</published><updated>2010-07-22T19:33:18.402+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Squeak"/><title type='text'>[Squeak] クイックソート その２</title><content type='html'>&lt;a href=&quot;http://newringo.blogspot.com/2010/07/squeak.html&quot;&gt;前回のクイックソート&lt;/a&gt;をSqueak 4.1以前のSqueakでも実行できるように変更してみました．&lt;br /&gt;
&lt;br /&gt;
相変わらず，コストは無視しています．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;quickSort := [:array  |
 | x xs left right |
 array isEmpty ifTrue:[ array ] ifFalse:[
 x := array first.
 xs := array allButFirst.
 left := xs select:[:v | v &lt; x].
 right := xs select:[:v | v &gt;= x].
  (quickSort  copy fixTemps value: left),(Array with:x), (quickSort copy fixTemps value:right )]].

quickSort copy fixTemps value: #(30 10 20 40 80 60) .
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
やっぱりSqueak 4.1がいい！&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/1465788205747567888/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/squeak_22.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1465788205747567888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/1465788205747567888'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/squeak_22.html' title='[Squeak] クイックソート その２'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1261376307522255868.post-3740430171762932071</id><published>2010-07-22T07:08:00.004+09:00</published><updated>2010-07-24T20:42:45.508+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Squeak"/><title type='text'>[Squeak] クイックソート</title><content type='html'>Squeakのブロックの使い方の例として．クイックソートを考えてみた．&lt;br /&gt;
&lt;br /&gt;
コストは気にせず書くと，Haskellっぽく記述できます．&lt;br /&gt;
&lt;br /&gt;
Squeak 4.1以前のSqueakだと以下のプログラムは実行できません．&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;quickSort := [:array |
| x xs left right |
array isEmpty ifTrue:[ array ] ifFalse:[
x := array first.
xs := array allButFirst.
left := xs select:[:v | v &lt; x].
 right := xs select:[:v | v &gt;= x].
(quickSort value: left ),{x}, (quickSort value:right )]].

quickSort value: #(30 10 20 40 80 60).
&lt;/pre&gt;ここでのポイントは，ブロック内リターンを使わないこと．&lt;br /&gt;
ブロックは最後に評価したオブジェクトの返り値がかえるので，それを利用すること．&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!--&lt;pre style=&quot;padding-left:10px;background-color:#F0F8FF;border-style:solid;border-width:1px;display:block;&quot;&gt; &lt;/pre&gt;--&gt;</content><link rel='replies' type='application/atom+xml' href='http://newringo.blogspot.com/feeds/3740430171762932071/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://newringo.blogspot.com/2010/07/squeak.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3740430171762932071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1261376307522255868/posts/default/3740430171762932071'/><link rel='alternate' type='text/html' href='http://newringo.blogspot.com/2010/07/squeak.html' title='[Squeak] クイックソート'/><author><name>Ringo</name><uri>http://www.blogger.com/profile/11021862011030836887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>