2011-01-01から1年間の記事一覧
長いタイトルですがタイトルの通りです。UITabBarNavigationにUINavigationController+UITableViewControllerとUIViewControllerを同時に使う。意外とややこしかったのでテンプレでまとめておきました。結構使うのにサンプルが少なかったりします。結局こう…
UITableViewControllerのimplementsを忘れるのでメモついでに。 #import "MyClass.h" @implementation MyClass @synthesize items; // 独自の拡張メソッド -(id) initWithTableObject:(UITableViewController *)tableView{ items = [[NSMutableArray alloc]i…
tableViewに動的に一行を追加する おもった以上に迷いました。 /* NSMutableArray * items; @property (nonatomic, retain) NSMutableArray * items; @synthesize items; */ [self.tableView beginUpdates]; [items addObject:@"ADD CEL"]; NSIndexPath * pa…
Rhaco1.xで動いているアプリがいくつかあるのでメンテナンス。 Rssをrhaco1.xで吐き出す方法。意外と忘れます。 Rhaco::import('tag.feed.Rss20'); Rhaco::import('tag.feed.model.RssItem20'); $rss = new Rss20(); $rssItem = new RssItem20(); $rssItem->…
Deep in thought, the captain murmured, "Even if we conserve our food, it will only be sufficient to sustain us for two weeks at most." deep in thought 考え、思考 murmur(v.i) ブツブツつぶやく(陰でつぶやく, 不平, 不満) http://ja.forvo.com/wo…
Capitalism, as opposed to socialism or communism, is believed to have favorable effect on the economy in that in promotes efficiency through competition. favorable(adj) 意見などが好意的な favorable opinion of〜 as opposed to 〜とは対照的に…
Colonel Sanders looked me in the eye and said, "If you presist in ignoring my commands, I'll be ogliged to transfer you somewhere else." persist(v.i) し続けるto persist in sayingyou persist in ignoring my commands persist in doing〜 oblige…
UINavigationControllerに関する忘れがちなメモ // UITableViewのCellをクリックしたときの動作 detailViewController * detail = [[detailViewController alloc]initWithNibName:@"detailViewController" bundle:nil]; // extends UITableView [self.naviga…
努力という言葉が嫌い。でも人からは努力家と言われる。努力は妄想なのではないかと思っています。努力をしているのではなく好きだからそれを深めることが出来るだけ。それを努力と言われても努力とは思わない。好きなだけだから。小学校中学校高校、そして…
.asoundrcには下記のようにjackd with alsaデバイスを設定しておきます。 pcm.jackplug { type plug slave { pcm "jack" } } pcm.jack { type jack playback_ports { 0 alsa_pcm:playback_1 1 alsa_pcm:playback_2 } capture_ports { 0 alsa_pcm:capture_1 1…
for image in `ls *.jpg`; do convert -sample 10%x10% $image thumbs/$image; done;例えばこれで縦横10%に縮小します。元画像をサムネイルしてthumbsフォルダにサムネイルを作成します。convertオプション一覧(日本語) http://www5a.biglobe.ne.jp/~nkgwtty…
function gen_uuid($len=8) { $hex = md5("your_random_salt_here_31415" . uniqid("", true)); $pack = pack('H*', $hex); $uid = base64_encode($pack); // max 22 chars $uid = ereg_replace("[^A-Za-z0-9]", "", $uid); // mixed case //$uid = ereg_rep…
独自に商品一覧をec-cubeから抜き出す方法です。 $objQuery = new SC_Query(); $cols = array( 'product_id', 'product_code_min', 'product_code_max', 'name', 'comment1', 'comment2', 'comment3', 'main_list_comment', 'main_image', 'main_list_image'…
http://ascii.jp/elem/000/000/584/584967/ Demand Media は独自の予測アルゴリズム技術を用いてオンラインユーザが求めている情報を解析して、それに合致する記事やビデオなどのコンテンツをeHowや Livestrong、Trails.com、answerbag などのDemand Mediaネ…
http://d.hatena.ne.jp/haruna26/20110216/1297867931を見ながら「いやいやデジタルネイティブだから」とか思ったけども。今となって自分も若いつもりでいたけど86世代とかでてきて82年生まれの私は結構年なんだなと思ったりしたこの頃。いわゆるアラサーで…
sendmailを使いたいが信頼度の高いsmtp経由させてメールを送信させたい。exim4のスマートホストなら簡単に設定ができます。http://highfrontier.ldblog.jp/tag/GMail からほとんど引用させてもらっています。私も試してしっかりと動いたのでメモ+自分用保存…
ustreamやyoutubeなどでラジオの配信などは本当に楽ちんになりましたが、独自に広告をとったりしてネットラジオ局を公開することもできます。smoothjazzやsomefmと同じような仕組みを作る方法です。サーバはlinuxサーバ。事情によりdebianではなくubuntu(Lin…