These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
||||||||||||||||||||||||||||||||||||||||||||||
% jpeg_jpegtable ~/love/aria.jpg tmp.jpg % jpeg_segment tmp.jpg (0) marker=SOI(FFD8): length=0 (1) marker=DQT(FFDB): length=65 (2) marker=DQT(FFDB): length=65 (3) marker=DHT(FFC4): length=29 (4) marker=DHT(FFC4): length=179 (5) marker=DHT(FFC4): length=29 (6) marker=DHT(FFC4): length=179 (7) marker=EOI(FFD9): length=015分ほど *1 であっさり出来た。ノリで SOI, EOI つけてるのはご容赦を。 jpeg_segment はこれね↑
for f in *.jpg; do jpeg_jpegtable $f /dev/stdout | md5sum - >> digest.list done;さて、結果は。
% wc digest.list 1756 3512 63216 digest.list & sort digest.list | uniq | wc 1063 2126 38268うーん。思ったよりバラバラすぎる… 微妙。
ls -l -rw-r--r-- 1 yoya develop 415302180 Jun 14 22:58 result.list
ls -l -rw-r--r-- 1 yoya develop 450796757 Jun 14 23:07 result.listみたいに膨らむログデータがあって、
2010-06-15 01:35:24といった終了予定時刻が表示されます。
$t3 = $t1 + ($n3 - $n1) / ($n2 - $n1) * ($t2 - $t1);ただの線形補完です。
% cat 1.list 2 1 3 % cat 2.list 4 2 3 % cat 3.list 3 4 5こんな結果が出ます。
% php diff_list.php 1.list 2.list 3.list 2 1.list 2.list 4 2.list 3.list 1 1.list 5 3.list
「アイドリングを止めるか場所を変えて貰えませんか」と頭を下げつつ丁寧に御願いしても、相手にされなかったり怒鳴られる事さえあります。 割りにあわなすぎるので、よほど長時間騒音が続かない限り我慢します。 自宅が特定され易いので、後で逆恨みされる可能性もありますし。
<?php // SampleParser require_once dirname(__FILE__).'/ByteBit.php'; require_once dirname(__FILE__).'/BitIndexer.php'; require_once dirname(__FILE__).'/BitIndexer/Parser.php'; class SampleParser extends BitIndexer_Parser { function getChunk($data, $offset, $length) { static $i = 0; $ret = array('name' => "sample_$i", 'length' => new ByteBit(0, 14)); $i++; return $ret; } } // sample code $data = 'ABCDE'; $parser = new SampleParser(); $indexer = new BitIndexer($parser); $indexer->parse($data, strlen($data)); $indexer->dump();
% php SampleParser.php * sample_0 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 41 42 AB * sample_1 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 42 43 44 BCD * sample_2 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 44 45 DE