foldrr's weblog

旧ブログ http://d.hatena.ne.jp/foldrr/

2009-08-21から1日間の記事一覧

Git へファイルを追加する

$ touch file1.txt $ git add file1.txt $ git commit -m 'test commit.'

Git へ追加したファイルを更新する

既に追加したファイルをコミットする場合も、git add する点に注意。 $ echo 1 >> file1.txt $ git add file1.txt $ git commit -m 'second commit.'

Git ローカルの変更を確認する

git status で変更箇所が表示される。 git add していないファイルは "Changed but no updated:" として表示される。 $ echo 1 >> file1.txt $ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be comm</file>…

CakePHP で LIKE 検索する

環境 CakePHP 1.2 問題 CakePHP で LIKE 検索したい。 解決方法 CakePHP 1.2 では 1.1 以前と書き方が違うので注意。 ModelName->find('all', array( 'conditions' => array( "field_name LIKE" => "%{$this->data['ModelName']['field_name']}%", ), )); $t…

Mixi ユーザー名付近にリンクを追加する

ユーザー名の近くに以下のリンクを追加する Firefox Greasemonkey スクリプト。 最近の日記 最近のコメント // ==UserScript== // @name mixi_user_link_plus // @namespace http://example.com // @include http://mixi.jp/show_log.pl* // @include http:/…