http://www.nishiohirokazu.org/tmp/git03.pdf 今日はツッコミ役の人はお休み。
いま実機でないと重要な機能が試せないアプリを作っていて、それ以外の機能を作るのでシミュレータでいいかと思ってSDKを切り替えたらこういうエラーが出るようになった。 error: synthesized property 'foobar' must either be named the same as a compatible ivar or must explicitly name an ivar 要するに @interface BazQuux { } @property (nonatomic, retain) FooBarType *foobar; でiPhone実機用のSDKだとビルドできるけど、シミュレータ用のSDKでは @interface BazQuux { FooBarType *foobar; } @property (nonatomic, retain) FooBarTy
データ構築子はただの関数じゃないのか? Haskell のリストが分からない。遅延評価も分からない。 - IT戦記 http://d.hatena.ne.jp/amachang/20080201/1201881246 いや、関数なのは別に構わないのだけど、リストを返す関数にしてしまってはいけないと思う。それじゃ「(呼ぶ前の)未評価の状態」と「(読んだ後の)リスト全部ができあがっている状態」の2つの状態しか取れない。実際には「頭1個だけ評価済み」「頭2個だけ評価済み」…と無数の状態があるので、これが全部関数に分かれている必要がある。 というわけでまず「評価前の状態(Thunk)」と「評価後の値」を表現するクラスを作ってみた。Thunkのforceを呼ぶと結果がValueになるまで評価を繰り返す。 >>> class Value(object): def __init__(self, valu
Django on Google App Engineでちょこちょこ開発しているけども、やっぱりDjangoなのにあのきれいなadmin画面が使えないのではDjango人生の80%くらいを損していると思うのでid:voluntasにすすめられたapp-engine-patchを使ってみる。 http://code.google.com/p/app-engine-patch/ バージョン1.0がリリースされて2週間くらい経ったし。安定版と見なしていいだろう〜と。まずはGettingStartedを読む。なるほど。 サンプルプロジェクトをダウンロードする app.yamlのapplicationのところをGAEのcreate applicationで作ったアプリケーション名にする settings.pyのSECRET_KEYをランダムな文字列で書き換える。これはDjangoに標準搭載のCSRF
最近「特に何か作りたいものがあるわけじゃないけど、プログラミングを学びたい!」という人を何人かみかけました。周りの大勢がPerlがいいとかPythonがいいとか無責任なおすすめをするので選択肢の多さにとまどいがちです。でもそれって、プログラミング言語をイケメンにたとえると恋に恋する乙女な感じ。まわりがわいわいと「サッカー部のA君がかっこいいよ!」「いや、化学研究部のB君の知性的なところがいい!メガネ!白衣!」と騒ぐので自分も話題に参加したいのだけど、A君がいいのかB君がいいのか自分では決められない状態。 すごいうぶだー!ほのぼのする! ハッカーになろう (How To Become A Hacker)というエッセイの中では下のように語られています。 言語を一つしか知らないなら、ハッカーではないし、プログラマですらないのです。あなたはプログラミングの問題について考えるのに、ひとつの言語に依存
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く