2010-02-10から1日間の記事一覧
current_post === 0); } function isLast(){ global $wp_query; return ($wp_query->current_post+1 === $wp_query->post_count); } function isOdd(){ global $wp_query; return ((($wp_query->current_post+1) % 2) === 1); } function isEvery(){ globa…
whereisもwhichも、どちらもコマンドのパスを調べるコマンドです。 MacPortsで入れたコマンドに対してwhereisしても、なぜか反応がなく、不思議だったので調べてみました。 結論 whereisは/usr/bin:/bin:/usr/sbin:/sbinにあるコマンドのみ調べられる。 whic…