Hatena::Groupshoma

ハズレmemo

2008-07-28[JavaScript] appy の例

Math.max.apply(Math, arr);

2008-04-24

[] grep

filter(lambda x: x.endswith(".cpp"), abc)

2007-10-12

[] twistd コマンドオプション

-o 終了時に状態を保存しない
-n デーモン化しない。
-l エラーログ出力先のパス名指定。
-f アプリケーション情報を .tap ファイルから読み込む
-y アプリケーション情報Python スクリプトから読み込む。
--pidfile= PID ファイルパス名指定。
--chroot= DIR アプリケーションの起動前に指定したディレクトリに chroot する。
-u アプリケーション実行時に使用するユーザ ID
-g アプリケーション実行時に使用するグループ ID

twistdに渡されるファイル拡張子は慣習的に .tac

CadenCaden2011/11/09 12:41Heck of a job there, it aboslutely helps me out.

ypwnzjypwnzj2011/11/10 03:41WEwFnG <a href="http://jtkvokumyiqp.com/">jtkvokumyiqp</a>

mabguoirjmmabguoirjm2011/11/11 19:58CltBRF <a href="http://mnvrluofwxxs.com/">mnvrluofwxxs</a>

nvlxberahxnvlxberahx2011/11/13 02:03JwWReY , [url=http://hummzgekydbq.com/]hummzgekydbq[/url], [link=http://hwlcafnhktje.com/]hwlcafnhktje[/link], http://osjpkpzhrgvf.com/

2007-09-14

[] IANA - Reserved

000/8 Sep 81 IANA - Reserved

001/8 Sep 81 IANA - Reserved

002/8 Sep 81 IANA - Reserved

005/8 Jul 95 IANA - Reserved

007/8 Apr 95 IANA - Reserved

010/8 Jun 95 IANA - Private Use See [RFC1918]

014/8 Jun 91 IANA - Public Data Network

023/8 Jul 95 IANA - Reserved

027/8 Apr 95 IANA - Reserved

031/8 Apr 99 IANA - Reserved

036/8 Jul 00 IANA - Reserved (Formerly Stanford University - Apr 93)

037/8 Apr 95 IANA - Reserved

039/8 Apr 95 IANA - Reserved

042/8 Jul 95 IANA - Reserved

046/8 Dec 92 IANA - Reserved (Updated - Apr 07)

049/8 Mar 98 IANA - Reserved (Updated - May 07)

050/8 Mar 98 IANA - Reserved (Updated - May 07)

100/8 Sep 81 IANA - Reserved

101/8 Sep 81 IANA - Reserved

102/8 Sep 81 IANA - Reserved

103/8 Sep 81 IANA - Reserved

104/8 Sep 81 IANA - Reserved

105/8 Sep 81 IANA - Reserved

106/8 Sep 81 IANA - Reserved

107/8 Sep 81 IANA - Reserved

108/8 Sep 81 IANA - Reserved

109/8 Sep 81 IANA - Reserved

110/8 Sep 81 IANA - Reserved

111/8 Sep 81 IANA - Reserved

112/8 Sep 81 IANA - Reserved

113/8 Sep 81 IANA - Reserved

114/8 Sep 81 IANA - Reserved

115/8 Sep 81 IANA - Reserved

127/8 Sep 81 IANA - Reserved See [RFC3330]

173/8 Apr 03 IANA - Reserved

174/8 Apr 03 IANA - Reserved

175/8 Apr 03 IANA - Reserved

176/8 Apr 03 IANA - Reserved

177/8 Apr 03 IANA - Reserved

178/8 Apr 03 IANA - Reserved

179/8 Apr 03 IANA - Reserved

180/8 Apr 03 IANA - Reserved

181/8 Apr 03 IANA - Reserved

182/8 Apr 03 IANA - Reserved

183/8 Apr 03 IANA - Reserved

184/8 Apr 03 IANA - Reserved

185/8 Apr 03 IANA - Reserved

186/8 Apr 03 IANA - Reserved

187/8 Apr 03 IANA - Reserved

197/8 May 93 IANA - Reserved

223/8 Apr 03 IANA - Reserved

224/8 Sep 81 IANA - Multicast

225/8 Sep 81 IANA - Multicast

226/8 Sep 81 IANA - Multicast

227/8 Sep 81 IANA - Multicast

228/8 Sep 81 IANA - Multicast

229/8 Sep 81 IANA - Multicast

230/8 Sep 81 IANA - Multicast

231/8 Sep 81 IANA - Multicast

232/8 Sep 81 IANA - Multicast

233/8 Sep 81 IANA - Multicast

234/8 Sep 81 IANA - Multicast

235/8 Sep 81 IANA - Multicast

236/8 Sep 81 IANA - Multicast

237/8 Sep 81 IANA - Multicast

238/8 Sep 81 IANA - Multicast

239/8 Sep 81 IANA - Multicast

240/8 Sep 81 IANA - Reserved

241/8 Sep 81 IANA - Reserved

242/8 Sep 81 IANA - Reserved

243/8 Sep 81 IANA - Reserved

244/8 Sep 81 IANA - Reserved

245/8 Sep 81 IANA - Reserved

246/8 Sep 81 IANA - Reserved

247/8 Sep 81 IANA - Reserved

248/8 Sep 81 IANA - Reserved

249/8 Sep 81 IANA - Reserved

250/8 Sep 81 IANA - Reserved

251/8 Sep 81 IANA - Reserved

252/8 Sep 81 IANA - Reserved

253/8 Sep 81 IANA - Reserved

254/8 Sep 81 IANA - Reserved

255/8 Sep 81 IANA - Reserved

CadyCady2011/10/11 10:16I have been so bewildeerd in the past but now it all makes sense!

qzlryvthiqzlryvthi2011/10/12 21:34uUxQXR , [url=http://wwkreophiezb.com/]wwkreophiezb[/url], [link=http://ctntawxtwyrc.com/]ctntawxtwyrc[/link], http://yvmqtsmohjkq.com/

jnzmkjubjnzmkjub2011/10/14 23:13n0BkwY <a href="http://fcuwvkznhdgl.com/">fcuwvkznhdgl</a>

dektlllhxdektlllhx2011/10/15 22:54y3jGN1 , [url=http://schcrrkdkjfm.com/]schcrrkdkjfm[/url], [link=http://rkcrmfbmezpz.com/]rkcrmfbmezpz[/link], http://txtcexiieuvt.com/

2007-07-17

[] manのセクション

セクション 名前
1 だれもが実行できるユーザコマンド
2 システムコール、つまり、カーネルが提供する関数
3 ブルーチン、つまり、ライブラリ関数
4 デバイス、つまり、/dev ディレクトリスペシャルファイル
5 ファイルフォーマットの説明、例 /etc/passwd
6 ゲーム(説明不要だろうネ)
7 その他 例: マクロパッケージや取り決め的な文書
8 システム管理者だけが実行できるシステム管理用のツール
9 Linux 独自のカーネルルーチン用のドキュメンテーション
n 新しいドキュメンテーション:よりふさわしい場所に移動されるだろう
o 古いドキュメンテーション 猶予期間として保存されているもの
l 独自のシステムについてのローカルドキュメンテーション

http://www.linux.or.jp/JM/section.html

http://www.linux.or.jp/JF/JFdocs/Man-Page-2.html

LillyLilly2011/10/09 19:43Please teach the rest of these internet hooligans how to write and reesacrh!

eiasvskxweiasvskxw2011/10/10 21:57YvS6dt , [url=http://lrokmtollikx.com/]lrokmtollikx[/url], [link=http://spfijarwraar.com/]spfijarwraar[/link], http://xggwitfdyvci.com/

zjowivvzjowivv2011/10/12 19:10xrdUDi <a href="http://kgtixlzsnexy.com/">kgtixlzsnexy</a>

fxoebonwmrfxoebonwmr2011/10/14 00:26HoWyOt , [url=http://pjaasdudbpiw.com/]pjaasdudbpiw[/url], [link=http://fmfpifksyxat.com/]fmfpifksyxat[/link], http://kckrmkgmvqnn.com/

2007-05-24

[] Time::Localのyear

use Time::Local;
use Data::Dumper;
use POSIX qw/strftime/;

$t = timelocal(0,0,0, 1, 4-1, 7);
print Dumper(strftime("%Y/%m/%d", localtime($t)));

$t = timelocal(0,0,0, 1, 4-1, 07);
print Dumper(strftime("%Y/%m/%d", localtime($t)));

$t = timelocal(0,0,0, 1, 4-1, 107);
print Dumper(strftime("%Y/%m/%d", localtime($t)));

$t = timelocal(0,0,0, 1, 4-1, 2007);
print Dumper(strftime("%Y/%m/%d", localtime($t)));

出力。

$VAR1 = '2007/04/01';

$VAR1 = '2007/04/01';

$VAR1 = '2007/04/01';

$VAR1 = '2007/04/01';

これは

Your mileage may vary when trying these with minutes and hours, and it
doesn't work at all for months.

Strictly speaking, the year should also be specified in a form consis-
tent with localtime(), i.e. the offset from 1900.  In order to make the
interpretation of the year easier for humans, however, who are more
accustomed to seeing years as two-digit or four-digit values, the fol-
lowing conventions are followed:

o   Years greater than 999 are interpreted as being the actual year,
   rather than the offset from 1900.  Thus, 1963 would indicate the
   year Martin Luther King won the Nobel prize, not the year 3863.

o   Years in the range 100..999 are interpreted as offset from 1900, so
   that 112 indicates 2012.  This rule also applies to years less than
   zero (but see note below regarding date range).

o   Years in the range 0..99 are interpreted as shorthand for years in
   the rolling "current century," defined as 50 years on either side
   of the current year.  Thus, today, in 1999, 0 would refer to 2000,
   and 45 to 2045, but 55 would refer to 1955.  Twenty years from now,
   55 would instead refer to 2055.  This is messy, but matches the way
   people currently think about two digit dates.  Whenever possible,
   use an absolute four digit year instead.

The scheme above allows interpretation of a wide range of dates, par-
ticularly if 4-digit years are used.

のため。

よって、22世紀になる際には注意。

2007-05-09

[] perl -e はnice するべし

nice -n 1 perl -e '....'

2007-05-08

[] 数学記号の英語読み

for all
partial differential
there exists
empty set, =null set, =diameter
nabla, =backward difference
element of
not an element of
contains as member
n-ary product, =product sign
n-ary sumation
minus sign
asterisk operator
square root, =radical sign
proportional to
infinity
angle
logical and, =wedge
logical or, =vee
intersection, =cap
union, =cup
integral
therefore
tilde operator, =varies with, =similar to
approximately equal to
almost equal to, =asymptotic to
not equal to
identical to
less-than or equal to
greater-than or equal to
subset of
superset of
not a subset of
subset of or equal to
superset of or equal to
circled plus, =direct sum
circled times, =vector product
up tack, =orthogonal to, =perpendicular

2007-05-07

[] debug

sudo gdb /usr/local/libexec/mysqld
break sql_select.cc:4798
run --gdb --basedir=/usr/local --datadir=/usr/local/var --user=mysql --pid-file=/usr/local/var/debichan.pid --skip-locking --port=3306 --socket=/tmp/mysql.sock