2010-01-01から1年間の記事一覧
世の中にツールチップ的なヘルプをポップアップするjsはたくさん転がっていて、たいがいの場合はそれらのライブラリを使えばことが済む。こんなのとか http://www.ideaxidea.com/archives/2008/10/tooltips.htmlただ今回場合、中のヘルプにaタグの記述などが…
環境設定→詳細 から「開発メニューをオンにする」をチェック SIMBL-0.9.7 GreaseKit.bundle *safari版greasemonkey SafariSource.bundle *safariで表示するsourceに色付けする Tumblrful.bundle *safariから右クリックでtumblrとかにpost 外す時は、付属のア…
mobileヘッダはどうすべきかという点。 <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"> <head> </head></html>
python2.6をinstall 入るのは2.6.1 sudo port install python26 sudo port install python_select
各種ブラウザ,コミュニケーションツールのインストール Firefox Chrome Opera Skype Adium 移行アシスタントを使ったアプリケーションの移動(主にadobe系) 移行アシスタント→アプリのみを選択し、Adobe系のアプリを新環境へ移行。 この時点で、先に入れた…
【例1】 var a = x ? b : c;は以下と等価 if(x) { var a = b; } else { var a = c; }【例2】 var a = (x || y) ? b : c;if(x || y) {var a = b;} else {var a = c;}【例3】 var a = x ? b : ( i || j ) ? c : d;if(x){ var a = b; } else { if( i || j ) { v…
tailfコマンドで開始 tailf /usr/local/apache/log/error_logcontrol+Cで終了。
// 全てのファイルからhogehogeを検索 find . -name '*' | xargs grep hogehoge // 全てのphpファイルからhogehogeを検索 find . -name '*.php' | xargs grep hogehoge参照元:http://shoulder.jp/archives/009306.php尚、検索対象がsvn管理下にある場合余計…
今wordpressのテーマのカスタマイズ(オリジナルテーマをフルスクラッチで作る)をやっていて、自分用のメモ。 smartyやTTなどのテンプレートエンジンではよくある指定文字数で文字を切って最後に「...」を付けるtruncateみたいな便利関数です。 smartyのそ…
この関数はループ中で使うことを前提としてる。 function cat_last_child(){ $cats = get_the_category(); $current = ''; foreach($cats as $cat){ if(!$current || cat_is_ancestor_of($current, $cat)) { $current = $cat; } } return $current; }上記を…
資料 http://jp.blogherald.com/2007/07/27/wordpress-dynamic-sub-page-navigation/
お名前.comにしてみるテスト。