<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>:: More PC ! ::</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/" />
    <link rel="self" type="application/atom+xml" href="http://more-pc.net/atom.xml" />
    <id>tag:more-pc.net,2007-11-19://1</id>
    <updated>2008-12-25T02:34:47Z</updated>
    <subtitle>移転したら記事が消えました。御用のかたは右上のコメントフォームからどうぞ。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.1</generator>

<entry>
    <title>[VB.NET]　通知領域にアイコンを表示させる(フォームを表示しない)</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1225111411.html" />
    <id>tag:more-pc.net,2008://1.383</id>

    <published>2008-12-25T02:14:11Z</published>
    <updated>2008-12-25T02:34:47Z</updated>

    <summary>自分用メモ。Visual Studio 2008 Express Edition...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>自分用メモ。Visual Studio 2008 Express Editionにて。</p>

<p>メインフォーム(ダミーなわけだけど)を配置したら、NotifyIconを配置。<br />
アイコンからアプリケーションを操作するため、ContextMenuStripも配置。</p>

<p>メニューの中身は適当に実装してNotifyIconにくっつけておく。</p>

<p>で、フォームのプロパティで</p>

<p>　　WindowState　を　Minimized<br />
　　ShowInTaskbar　を　False</p>

<p>にすると、起動してもフォームは表示されず、通知領域のアイコンのみ表示される。<br />
趣旨は、WindowStateは起動時のフォームの状態で、これが最小化に設定されている。<br />
でもShowInTaskbarがFalseなので表示されず、NotifyIconだけが残っている状態。<br />
*最小化してもこういうの↓が表示されない=通知領域だけ表示<br />
<img src="http://more-pc.net/assets_c/2008/12/taskbar.JPG" alt="taskbar.JPG" class="mt-image-none" style="" /></p>

<p>なので当然ながら、NotifyIconを設定し忘れていたり終了メニューを実装し忘れていたりすると<br />
ユーザーに不親切なアプリケーションができあがる。</p>]]>
        
    </content>
</entry>

<entry>
    <title>自動でダウンロードした lolipop のログを ApacheLogViewer 用に日々整形する</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1212062721.html" />
    <id>tag:more-pc.net,2008://1.382</id>

    <published>2008-12-11T21:27:21Z</published>
    <updated>2008-12-11T21:27:21Z</updated>

    <summary>&#160;  自動でダウンロードする方法は前々回の記事、cygwin の cr...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>&#160;</p>  <p>自動でダウンロードする方法は<a href="http://more-pc.net/archives/2008/0110113544.html">前々回の記事</a>、cygwin の cron に移植した記録は<a href="http://more-pc.net/archives/2008/0608203523.html">前回の記事</a>を参照してもらうこととして、     <br />今回は <a href="http://www.vector.co.jp/soft/win95/net/se252609.html">ApacheLogViewer</a>&#160; 用に整形します。</p>  <p>と言っても2列目をドメインに差し替えるだけですが。</p>  <p>なので、ドメインが1つだけの契約なら関係ありません。</p>  <p>ロリポップのくれたサブドメインと、独自ドメインと、独自ドメインのサブドメインがあるような状況を想定しています。</p>  <p>&#160;</p>  <p>#!/bin/sh    <br />cd /home/lolipop_log # .gzが日々落ちてくるディレクトリを指定     <br />out=/home/lolipop_log/alv # 解凍したログを出力するディレクトリ     <br />suffix=`date +&quot;%s&quot;`     <br />suffix=`expr ${suffix} - 86400` # 前日のログを処理するので．     <br />suffix=`echo ${suffix} | perl -ne '@t=localtime($_);printf(&quot;%d%02d%02d&quot;,@t[5]+1900,@t[4]+1,@t[3])'`     <br /># バーチャルドメインを列記。     <br />for domain in dphoge.lolipop.jp www.foo.net bar.net ;do     <br />&#160; zcat ${domain}.${suffix}.gz | awk -vVAL=${domain} '$2=VAL {print $0}' &gt; ${out}/${domain}.${suffix}.log     <br />done</p>  <p>&#160;</p>  <p>これを適当な名前で保存 -&gt; chmod +x –&gt; crontab –e で、ログを落としたあとの時刻に登録。</p>  <p>crontab –l するとこんな感じになっています。</p>  <p>SHELL=/bin/sh   <br />45 23 * * * /home/ｌolipop_log/dl_lolipop_logs.sh    <br />55 23 * * * /home/lolipop_log/format.sh</p>]]>
        
    </content>
</entry>

<entry>
    <title>cygwin から Windows のプロセスを表示/killする</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1212045042.html" />
    <id>tag:more-pc.net,2008://1.381</id>

    <published>2008-12-11T19:50:42Z</published>
    <updated>2008-12-15T23:51:51Z</updated>

    <summary>ps コマンドで扱えるのは cygwin にぶら下がっているプロセスだけなので、...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="cygwin" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>ps コマンドで扱えるのは cygwin にぶら下がっているプロセスだけなので、   <br />cygwin からでも Windows のコマンドを使う。</p>  <p>&#160;</p>  <p>・実行されているすべてのタスクを表示する</p>  <blockquote>   <p>% tasklist</p> </blockquote>  <p>・それぞれのプロセスのサービスを表示する</p>  <blockquote>   <p>% tasklist /SVC</p> </blockquote>  <p>* tasklist コマンドのオプションでプロセスの絞込みができるが、| grep のほうが自然なので割愛。</p>  <p>・特定のプロセスをkillする</p>  <blockquote>   <p>% taskkill /PID 99999 /F</p> </blockquote>  <p>・特定のアプリケーションをすべてkillする(killall like)</p>  <blockquote>   <p>% taskkill /IM notepad.exe /F</p> </blockquote>  <p>&#160;</p>  <p># Windows Live Writer Beta のテストを兼ねて投稿。</p>]]>
        
    </content>
</entry>

<entry>
    <title>FairUse4WM + drm2wmv_e で DRM を解除するためのバッチファイルを生成する</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1208112933.html" />
    <id>tag:more-pc.net,2008://1.380</id>

    <published>2008-12-08T02:29:33Z</published>
    <updated>2008-12-08T10:47:28Z</updated>

    <summary>drm2wmv_eは複数のファイルを対象にできないので、1つずつ順番に作業するバ...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>drm2wmv_eは複数のファイルを対象にできないので、1つずつ順番に作業するバッチを生成する。<br>作業用PCにはPerlを入れていないので自分用に作成。<br>復元キーを直接貼り付けるので、ソースを持って帰って自前の環境で動かしてください。<br>フォームの入力内容はSTDINで読んで処理してSTDOUTに吐くだけなので、ファイルに残したりログ取ったりはしていませんが。<br>-&gt;<a href="http://more-pc.net/archives/key2bat.txt">CGIソース</a><br><br>あくまで身内仕様につき不具合があっても知りません。<br>使用は自己責任で。<br></p><form action="/cgi-bin/key2bat.cgi" method="post" contenteditable="false">
<p>path of drm2wmv_e<br><input name="exe" size="30" value="C:\drm2\drm2wmv_e.exe"></p>
<p>paste key from FairUse4WM<br><textarea name="key" rows="20" cols="80">C:\***.asf
&lt;KID&gt;hoge&lt;/KID&gt;
&lt;SID&gt;hage&lt;/SID&gt;
C:\***.asf
&lt;KID&gt;foo&lt;/KID&gt;
&lt;SID&gt;baa&lt;/SID&gt;
</textarea></p>

<p><br /><input name="md" value="バッチ生成！" type="submit" /><br />
</p></form>

<p><br /></p><p>参考：<a href="http://koukokutou-club.com/gyao/drm4.html">FairUse4WMとdrm2wmv_eの合わせ技でDRMを解除</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>manpage of TCPTRACE [拙訳]</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1205125223.html" />
    <id>tag:more-pc.net,2008://1.377</id>

    <published>2008-12-05T03:52:23Z</published>
    <updated>2008-12-05T04:10:45Z</updated>

    <summary>ダウンロードはこちら。 名前        tcptrace - TCPコネクシ...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p><a href="http://more-pc.net/archives/category/linux/tcptrace_jman.txt">ダウンロードはこちら</a>。</p>

<p>名前<br />
       tcptrace - TCPコネクション分析ツール</p>

<p>書式<br />
       tcptrace [options] filename</p>

<p>説明<br />
       tcptraceはコマンドライン上でtcpdumpファイル(または標準入力から)の詳細を<br />
       取得し、コネクションの概要を生成する。</p>

<p>オプション<br />
       出力形式オプション</p>

<p>       -b   簡単な出力形式</p>

<p>       -l   詳細な出力</p>

<p>       -r   print rtt statistics (大きなファイルは遅くなる)</p>

<p>       -W   ウィンドウサイズの予想を報告する (普通役に立たない)</p>

<p>       -q   出力しない (モジュールの出力だけ欲しい場合)</p>

<p>       グラフ描画オプション</p>

<p>       -T   スループットのグラフを作成する (10セグメント以上の平均、-Aを参照)</p>

<p>       -R   Round Trip Timeのグラフを作成する</p>

<p>       -S   タイムシーケンスのグラフを作成する</p>

<p>       -N   輻輳ウインドウのグラフを作成する (ネットワーク上の輻輳データ)</p>

<p>       -F   セグメントサイズのグラフを作成する</p>

<p>       -G   すべてのグラフを作成する</p>

<p>       出力形式の詳細オプション</p>

<p>       -D   10進数で表示</p>

<p>       -X   16進数で表示</p>

<p>       -n   ホストまたはサービス名の名前解決をしない (高速)</p>

<p>       -s   短い名前を使う (リスト "picard.cs.ohiou.edu" は "picard" になる)</p>

<p>       コネクションフィルタリングオプション</p>

<p>       -iN  コネクション番号Nを無視する (複数指定可能)</p>

<p>       -oN[-M]<br />
            コネクション番号Nだけ(またはNからM)を対象にする。引数は複数指定可能。<br />
            Nは番号よりもむしろ、代わりにファイルからリストを読む。</p>

<p>       -c   完結していないコネクション(SYNとFINが見つからない)を無視する</p>

<p>       -BN  分析の最初のシーケンス番号 (デフォルト 1)</p>

<p>       -EN  分析の最後のシーケンス番号 (デフォルト ファイルの最後)</p>

<p>       グラフ描画の詳細オプション</p>

<p>       -C   カラー描画出力</p>

<p>       -M   モノクロ描画出力</p>

<p>       -AN  スループットグラフでN個のセグメントを平均する。デフォルトは10。</p>

<p>       -z   0軸オプション:</p>

<p>       -z   時間軸を時刻ではなく0からでプロットする (下位互換)</p>

<p>       -zx  時間軸を時刻ではなく0からでプロットする</p>

<p>       -zy  シーケンス番号を0からでプロットする (タイムシーケンスグラフ専用オプション)</p>

<p>       -zxy X軸、Y軸とも0からでプロットする</p>

<p>       -y   スループットグラフで、瞬間スループットの(黄色の)点を省略する</p>

<p>       その他のオプション</p>

<p>       -Z   生のrtt sample timesをファイルにダンプする</p>

<p>       -p   パケットの内容すべてを表示する (とても長くなり得る)</p>

<p>       -P   選択したコネクションのパケットの内容を表示する</p>

<p>       -t   進捗度をパケット数で刻む'tick' off the packet numbers as a progress indication</p>

<p>       -v   バージョン情報を表示して終了する</p>

<p>       -w   警告を多く表示する</p>

<p>       -d   動作中は合図する (デバッグ有効。さらに出力するには -d -d を使う)</p>

<p>       -e   各TCPストリームの内容をファイルに抜き出す</p>

<p>       -h   ヘルプメッセージを表示する</p>

<p>       -u   最小限のUDPの情報も表示する</p>

<p>       -Ofile<br />
            マッチしたパケットをtcmdumpファイル 'file' にダンプする</p>

<p>       +[v] -[v]の設定内容を逆にする (bool型用)</p>

<p>       bool型の拡張オプション (未指定でもデフォルト値で動作)</p>

<p>       --showsacks<br />
            タイムシーケンスのグラフでSACKブロックを表示する (デフォルト)</p>

<p>       --noshowsacks<br />
            タイムシーケンスのグラフでSACKブロックを表示しない</p>

<p>       --showrexmit<br />
            タイムシーケンスのグラフで再送をマークする (デフォルト)</p>

<p>       --noshowrexmit<br />
            タイムシーケンスのグラフで再送をマークしない</p>

<p>       --showoutorder<br />
            タイムシーケンスのグラフで破損をマークする (デフォルト)</p>

<p>       --noshowoutorder<br />
            タイムシーケンスのグラフで破損をマークしない</p>

<p>       --showzerowindow<br />
            タイムシーケンスのグラフでウィンドウが0をマークする (デフォルト)</p>

<p>       --noshowzerowindow<br />
            タイムシーケンスのグラフでウィンドウが0をマークしない</p>

<p>       --showurg<br />
            タイムシーケンスのグラフでURGENTビットがセットされたパケットをマークする (デフォルト)</p>

<p>       --noshowurg<br />
            タイムシーケンスのグラフでURGENTビットがセットされたパケットをマークしない</p>

<p>       --showrttdongles<br />
            Round Trip Time以外が生成した、特殊な記号付きACKをマークする</p>

<p>       --noshowrttdongles<br />
            Round Trip Time以外が生成した、特殊な記号付きACKをマークしない (デフォルト)</p>

<p>       --showdupack3<br />
            タイムシーケンスのグラフで3重複ACKをマークする (デフォルト)</p>

<p>       --noshowdupack3<br />
            タイムシーケンスのグラフで3重複ACKをマークしない</p>

<p>       --showzerolensegs<br />
            タイムシーケンスのグラフで長さが0のパケットを描画する (デフォルト)</p>

<p>       --noshowzerolensegs<br />
            タイムシーケンスのグラフで長さが0のパケットを描画しない</p>

<p>       --showzwndprobes<br />
            ウィンドウが0のProbeパケットを描画する (デフォルト)</p>

<p>       --noshowzwndprobes<br />
            ウィンドウが0のProbeパケットを描画しない</p>

<p>       --showtitle<br />
            グラフにタイトルを描画する (デフォルト)</p>

<p>       --noshowtitle<br />
            グラフにタイトルを描画しない</p>

<p>       --res_addr<br />
            IPアドレスの名前解決を行う (たぶん遅い) (デフォルト)</p>

<p>       --nores_addr<br />
            IPアドレスの名前解決を行わない (たぶん遅いw)</p>

<p>       --res_port<br />
            ポート番号の名前解決を行う (デフォルト)</p>

<p>       --nores_port<br />
            ポート番号の名前解決を行わない</p>

<p>       --checksum<br />
            IPとTCPのチェックサムを検証する</p>

<p>       --nochecksum<br />
            IPとTCPのチェックサムを検証しない (デフォルト)</p>

<p>       --dupack3_data<br />
            運ぶデータの重複したACKを3重複ACKとして数える</p>

<p>       --nodupack3_data<br />
            運ぶデータの重複したACKを3重複ACKとして数えない (default)</p>

<p>       --check_hwdups<br />
            ハードウェアの重複をチェックする (デフォルト)</p>

<p>       --nocheck_hwdups<br />
            ハードウェアの重複をチェックしない</p>

<p>       --warn_ooo<br />
            パケットのタイムスタンプが破損していたら警告を表示する</p>

<p>       --nowarn_ooo<br />
            パケットのタイムスタンプが破損していても警告を表示しない (default)</p>

<p>       --warn_printtrunc<br />
            パケットが分析には短すぎる場合に警告を表示する</p>

<p>       --nowarn_printtrunc<br />
            パケットが分析には短すぎる場合でも警告を表示しない (default)</p>

<p>       --warn_printbadmbz<br />
            0であるべきTCPの列が0でない場合に警告を表示する</p>

<p>       --nowarn_printbadmbz<br />
            0であるべきTCPの列が0でない場合でも警告を表示しない (default)</p>

<p>       --warn_printhwdups<br />
            ハードウェアの重複を警告する</p>

<p>       --nowarn_printhwdups<br />
            ハードウェアの重複を警告しない (default)</p>

<p>       --warn_printbadcsum<br />
            パケットのチェックサムが不一致なら警告を表示する</p>

<p>       --nowarn_printbadcsum<br />
            パケットのチェックサムが不一致でも警告を表示しない (default)</p>

<p>       --warn_printbad_syn_fin_seq<br />
            SYNかFINが異なるシーケンス番号で再送したとき警告を表示する</p>

<p>       --nowarn_printbad_syn_fin_seq<br />
            SYNかFINが異なるシーケンス番号で再送したときでも警告を表示しない (default)</p>

<p>       --dump_packet_data<br />
            パケットとTCP/UDPのダンプデータをすべて表示する</p>

<p>       --nodump_packet_data<br />
            パケットとTCP/UDPのダンプデータを表示しない (default)</p>

<p>       --continuous<br />
            連続的に実行し、概要を提供しない</p>

<p>       --nocontinuous<br />
            連続実行はせず、概要を提供する (default)</p>

<p>       --print_seq_zero<br />
            最初のシーケンス番号からのオフセットで表示する</p>

<p>       --noprint_seq_zero<br />
            シーケンス番号をオフセットではなく本来の値で表示する (default)</p>

<p>       --limit_conn_num<br />
            リアルタイムモードで一度に保持するコネクションに上限を設ける</p>

<p>       --nolimit_conn_num<br />
            リアルタイムモードで一度に保持するコネクションに上限を設けない (default)</p>

<p>       --xplot_all_files<br />
            生成したすべてのxplotファイルを最後に表示する</p>

<p>       --noxplot_all_files<br />
            生成したすべてのxplotファイルを最後に表示しない (default)</p>

<p>       --ns_hdrs<br />
            nsのuseHeadersフラグがtrueだと仮定する (IP+TCP ヘッダを使う) (default)</p>

<p>       --nons_hdrs<br />
            nsのuseHeadersフラグがfalseだと仮定する</p>

<p>       --csv<br />
            長い出力をカンマ区切りデータとして表示する</p>

<p>       --nocsv<br />
            長い出力をカンマ区切りデータとして表示しない (default)</p>

<p>       --tsv<br />
            長い出力をタブ区切りデータとして表示する</p>

<p>       --notsv<br />
            長い出力をタブ区切りデータとして表示しない (default)</p>

<p>       拡張変数オプション (未指定でもデフォルト値で動作)</p>

<p>       --output_dir=``STR''<br />
            すべての出力ファイルが配置されるディレクトリ (default: '<NULL>')</p>

<p>       --output_prefix=``STR''<br />
           この文字列がすべての出力ファイルの接頭辞 (default: '<NULL>')</p>

<p>       --xplot_title_prefix=``STR''<br />
            すべての xplot ファイルに付けられる接頭辞 (default:<br />
            '<NULL>')</p>

<p>       --update_interval=``STR''<br />
            リアルタイムモードで、更新する時間間隔 (default: '<NULL>')</p>

<p>       --max_conn_num=``STR''<br />
            リアルタイムモードで一度に保持するコネクションの最大数 (default: '<NULL>')</p>

<p>       --remove_live_conn_interval=``STR''<br />
            リアルタイムモードで、開いている接続が外されるまでのアイドルタイム (default: '<NULL>')</p>

<p>       --remove_closed_conn_interval=``STR''<br />
            リアルタイムモードで、閉じている接続が外されるまでの時間間隔 (default: '<NULL>')</p>

<p>       --xplot_args=``STR''<br />
            tcptrace から xplot を呼び出すときに渡す引数 (default: '<NULL>')</p>

<p>       --sv=``STR''<br />
            長い出力を、STRに設定された値で分割する (default: '<NULL>')</p>

<p>       含まれているモジュール</p>

<p>         http             Http分析モジュール</p>

<p>         tcplib           TCPLib分析モジュール</p>

<p>         traffic          トラフィック分析モジュール</p>

<p>         slice            時間で区切ったトラフィック効率データ</p>

<p>         rttgraph         RRT分析モジュール</p>

<p>         collie           コネクション概要モジュール</p>

<p>         realtime         リアルタイムモードの例</p>

<p>       モジュールの詳細なオプションは `tcptrace -hxargs` を使ってください。</p>

<p>       フィルター変数:</p>

<p>       フィルター変数の完全なリストは 'tcptrace -hfilter' を使ってください。</p>

<p>       フィルター文法:</p>

<p>       フィルターの文法は 'tcptrace -hfilter' を使ってください。</p>

<p></p>

<p>環境変数<br />
       オプションは、まず (存在すれば) $HOME/.tcptracerc を読み、そして (存在<br />
       すれば) 環境変数 TCPTRACEOPTS を読み、最後にコマンドラインから読む。</p>

<p>著者<br />
       Shawn Ostermann (ostermann@cs.ohiou.edu)</p>

<p>CREDITS<br />
       Thanks  to  Mark Foster (mafoster@george.arc.nasa.gov) for writing this<br />
       manual page. Thanks to Avinash Lakhiani (alakhian@irg.cs.ohiou.edu) for<br />
       updating it.</p>

<p>ファイル<br />
       ダンプファイル名<br />
       あとに続く引数を、ひとつ以上のファイル名になるように取ります(認識はされていない)。<br />
       ファイルは圧縮されていてもかまわない。設定は compress.h を参照。<br />
       ダンプファイルの名前が 'stdin' なら、ファイルではなく標準入力から読み込む。</p>

<p>関連項目<br />
       xplot   tcptrace から出力された .xpl ファイルを調べる対話型ツール。</p>

<p>       jPlot   xplotのJava版。</p>

<p>翻訳者</p>

<p></p>

<p></p>

<p><br />
 http モジュール:<br />
    使いかた:<br />
        -xHTTP[P]       HTTPのトラフィック情報を表示する (ポートP、デフォルトは80)<br />
 traffic モジュール:<br />
    使いかた:<br />
        -xtraffic"[ARGS]"       全体のトラフィックの情報を表示する<br />
           モジュールの引数書式:</p>

<p>               -iS          統計の間隔を S(float) 秒に設定する。デフォルトは15.0。<br />
               -pP          ポート番号Pの情報を含める<br />
               -pP1-P2      ポート番号が [P1-P2] の範囲の情報を含める<br />
               -p-P         ポート番号Pの情報を除く<br />
               -p-P1-P2     ポート番号が [P1-P2] の範囲の情報を除く<br />
               -pSPEC,SPEC  commas chain together specs<br />
               -G           すべてのグラフを生成する<br />
               -A           'アクティブコネクション' のグラフを生成する<br />
               -B           'bps(bytes per second)' のグラフを生成する<br />
               -C           'opens and closes' のグラフを生成する<br />
               -H           'halfopen connections' のグラフを生成する<br />
               -K           'pure acKs/second' のグラフを生成する<br />
               -L           'losses per second' のグラフを生成する<br />
               -O           'open connections' のグラフを生成する<br />
               -I           'instantaneous open connections' のグラフを生成する<br />
               -P           'packets per second' のグラフを生成する<br />
               -Q           'idle (Quiet) connections' のグラフを生成する<br />
               -R[MIN[-MAX]]'round trip time' のグラフを生成する<br />
                            with args, ignore samples outside MIN to MAX (in ms)<br />
               -T           'total data' のグラフを生成する。<br />
               -D[SECS]     長く持続したコネクションのグラフを生成する。「長く」のデフォルトの定義は60秒。<br />
               -d           このモジュールのローカルデバッグを有効にする<br />
             例<br />
               -xtraffic" -p23"            ポート23だけ<br />
               -xtraffic" -p1-1023"        ポート1-1023だけ<br />
               -xtraffic"-p1-1023,-10-20 -L -O"  ポート1-1023からポート10-20を除いたものだけ<br />
             ポート番号を明示的に指定しなければすべてのポートが含まれる。<br />
             With ANY spec, all ports are initially EXCLUDED<br />
 slice モジュール:<br />
    使いかた:<br />
        -xslice"[ARGS]" sliceのデータ情報を表示する<br />
           モジュールの引数書式:<br />
               -iS   slice の間隔を S (float) 秒に設定する。デフォルトは15.0。<br />
               -d    このモジュールのローカルデバッグを有効にする<br />
               -tb   日付と時刻を簡単な形式で表示<br />
               -tl   日付と時刻をUnix形式で長く表示<br />
               -tu   日付と時刻をエポック秒で表示 (secs)<br />
               -tU   日付と時刻をエポック秒で表示 (secs.usecs)<br />
 rttgraph モジュール:<br />
    使いかた:<br />
        -xrttgraph      rttgraphトラフィックについての情報を表示<br />
 collie モジュール:<br />
    使いかた:<br />
        -xcollie"[-ln]  コネクションの概要を提供する<br />
           -l   attach labels<br />
           -n   no labels please<br />
 realtime モジュール:<br />
    使いかた:<br />
        -xrealtime      リアルタイム tcptrace の使い方を示すモジュールの例</p>

<p></p>

<p>フィルター変数:<br />
  変数名             種類      説明<br />
  -----------------  --------  -----------------------<br />
  hostname           STRING    完全修飾ドメイン名 (-n は除く)<br />
  portname           STRING    ポートのサービス名 (-n は除く)<br />
  port               UNSIGNED  ポート番号<br />
  mss                SIGNED    最大セグメントサイズ<br />
  f1323_ws           BOOL      1323 window scaling requested<br />
  f1323_ts           BOOL      1323 time stampts requested<br />
  fsack_req          BOOL      SACKs requested<br />
  window_scale       BOOL      window scale factor<br />
  bad_behavior       BOOL      bad TCP behavior<br />
  data_bytes         UNSIGNED  bytes of data<br />
  data_segs          UNSIGNED  segments of data<br />
  data_segs_push     UNSIGNED  segments with PUSH set<br />
  unique_bytes       UNSIGNED  non-retransmitted bytes<br />
  rexmit_bytes       UNSIGNED  retransmitted bytes<br />
  rexmit_segs        UNSIGNED  segments w/ retransmitted data<br />
  ack_segs           UNSIGNED  segments containing ACK<br />
  pureack_segs       UNSIGNED  segments containing PURE ACK (no data/syn/fin/reset)<br />
  win_max            UNSIGNED  MAX window advertisement<br />
  win_min            UNSIGNED  MIN window advertisement<br />
  win_zero_ct        UNSIGNED  0が広告されたウィンドウの数<br />
  min_seq            UNSIGNED  シーケンス番号の最小値<br />
  max_seq            UNSIGNED  シーケンス番号の最大値<br />
  num_sacks          UNSIGNED  number of ACKs carrying SACKs<br />
  max_sacks          UNSIGNED  most SACK blocks in a single ACK<br />
  segs               UNSIGNED  total segments<br />
  packets            UNSIGNED  total segments<br />
  syn_count          UNSIGNED  SYNs sent<br />
  fin_count          UNSIGNED  FINs sent<br />
  reset_count        UNSIGNED  RESETs sent<br />
  min_seg_size       UNSIGNED  smallest amount of data in a segment (not 0)<br />
  max_seg_size       UNSIGNED  largest amount of data in a segment<br />
  out_order_segs     UNSIGNED  out of order segments<br />
  sacks_sent         UNSIGNED  SACKs sent<br />
  ipv6_segs          UNSIGNED  number of IPv6 segments sent<br />
  max_idle           UNSIGNED  maximum idle time (usecs)<br />
  num_hw_dups        UNSIGNED  number of hardware-level duplicates<br />
  initwin_bytes      UNSIGNED  number of bytes in initial window<br />
  initwin_segs       UNSIGNED  number of segments in initial window<br />
  rtt_min            UNSIGNED  MIN round trip time (usecs)<br />
  rtt_max            UNSIGNED  MAX round trip time (usecs)<br />
  rtt_count          UNSIGNED  number of RTT samples<br />
  rtt_min_last       UNSIGNED  MIN round trip time (usecs) (from last rexmit)<br />
  rtt_max_last       UNSIGNED  MAX round trip time (usecs) (from last rexmit)<br />
  rtt_count_last     UNSIGNED  number of RTT samples (from last rexmit)<br />
  rtt_amback         UNSIGNED  number of ambiguous ACKs<br />
  rtt_cumack         UNSIGNED  number of cumulative ACKs<br />
  rtt_unkack         UNSIGNED  number of unknown ACKs<br />
  rtt_dupack         UNSIGNED  number of duplicate ACKs<br />
  rtt_nosample       UNSIGNED  ACKs that generate no valid RTT sample<br />
  rtt_triple_dupack  UNSIGNED  number of triple duplicate ACKs (fast rexmit)<br />
  retr_max           UNSIGNED  MAX rexmits of a single segment<br />
  retr_min_tm        UNSIGNED  MIN time until rexmit (usecs)<br />
  retr_max_tm        UNSIGNED  MAX time until rexmit (usecs)<br />
  trunc_bytes        UNSIGNED  number of bytes not in the file<br />
  trunc_segs         UNSIGNED  number of segments not in the file<br />
  num_zwnd_probes    UNSIGNED  number of zero window probes<br />
  zwnd_probe_bytes   UNSIGNED  number of window probe bytes<br />
  urg_data_pkts      UNSIGNED  Number of packets with URGENT bit set<br />
  urg_data_bytes     UNSIGNED  Number of bytes of urgent data<br />
  hostaddr           IPADDR    IP Address (v4 or v6 in standard textual notation<br />
  thruput            UNSIGNED  スループット (バイト/秒)</p>

<p>フィルター文法:<br />
  numbers:<br />
     変数:<br />
        上の表　c_を頭につければクライアント側　s_を付ければサーバー側<br />
        b_は両方とも。<br />
        e_はどちらか。<br />
        デフォルトは何もついていない。<br />
        anything from the above table with a prefix of either 'c_' meaning<br />
        the one for the Client or 's_' meaning the value for the Server.  If<br />
        the prefix is omitted, it means "either one" (effectively becoming<br />
        "c_VAR OR s_VAR)").  As shorthand for a conjunction instead, you can<br />
        use the syntax 'b_' (as in b_mss>100), meaning 'B'oth, (effectively<br />
        becoming "c_VAR AND s_VAR)").  For completeness, 'e_' means 'E'ither,<br />
        which is the normal default with no prefix.<br />
     定数:<br />
        文字列:         ダブルクォーテーションで囲ったもの何でも<br />
        真偽値:       TRUE FALSE<br />
        数:        符号付き/符号なしの定数<br />
  算術演算子:<br />
     any of the operators + - * / %<br />
     performed on 'numbers'.  Normal operator precedence<br />
        is maintained (or use parens)<br />
  関係演算子<br />
     any of < > = != >= <= applied to 'numbers'<br />
  論理演算子<br />
     AND, OR, NOT applied to the relational operators above<br />
  その他<br />
     優先度がわからなければ括弧を使う。<br />
     とにかく括弧を使っておけば私よりかっこいいはず! :-)<br />
     you'll probably need to put the '-fexpr' expression in single quotes<br />
     matched connection numbers are saved in file PF for later processing<br />
        with '-oPF' (for graphing, for example).  This is helpful, because<br />
        all the work is done in one pass of the file, so if you graph while<br />
        using a filter, you'll get ALL graphs, not just the ones you want.<br />
        Just filter on a first pass, then use the "-oPF" flag with graphing<br />
        on the second pass<br />
     most common synonyms for NOT, AND, and OR also work (!,&&,||,-a,-o)<br />
        (for those of us with very poor memories<br />
例<br />
  tcptrace '-fsegs>10' file<br />
  tcptrace '-fc_segs>10 OR s_segs>20 ' file<br />
  tcptrace '-f c_segs+10 > s_segs ' file<br />
  tcptrace -f'thruput>10000 and segs > 100' file<br />
  tcptrace '-fb_segs>10' file</p>]]>
        
    </content>
</entry>

<entry>
    <title>何</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1130153115.html" />
    <id>tag:more-pc.net,2008://1.376</id>

    <published>2008-11-30T06:31:15Z</published>
    <updated>2008-11-30T06:57:08Z</updated>

    <summary>何か書けって言われたので。 ...じゃなくて。 個人的メモ 不思議博物館 101...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="雑記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>何か書けって言われたので。</p>

<p>...じゃなくて。</p>

<p><br />
個人的メモ<br />
<a href="http://www.asahi-net.or.jp/~bu9t-sm/">不思議博物館</a><br />
101m×152mのポストカードは未だに見せてもらえませんｗ</p>

<p><br />
そうじゃなくて。</p>

<p><a href="http://kmuto.jp/d/index.cgi/computer/capture-vmware.htm">VMwareのスクリーンキャプチャをもうちょっと楽にする</a></p>

<p><a href="http://www.ne.jp/asahi/web/ryo/exewrap/">実行可能 JAR ファイルから EXE ファイルを生成するexewrap</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>au携帯からGPS情報を取得する</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1119084332.html" />
    <id>tag:more-pc.net,2008://1.374</id>

    <published>2008-11-18T23:43:32Z</published>
    <updated>2008-11-19T00:05:52Z</updated>

    <summary><![CDATA[1.次のコードを、携帯のブラウザからアクセスできるページに埋め込む。*&lt;s...]]></summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="HTML" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[1.次のコードを、携帯のブラウザからアクセスできるページに埋め込む。<br />*&lt;server&gt;はドメイン名に置き換えること。<br /><br />&lt;?<br />echo "&lt;a href=device:gpsone?url=http://server/gpsinfo.php&gt;送信&lt;/a&gt;";<br />?&gt;<br /><br /><br />2.GPS情報はGETメソッドで送信されるので、次の変数に代入されている。<br />*Perlの場合は、GETメソッド解釈ｰ&gt;name:valueで対応づけてハッシュに代入すると良い。<br /><br />$_GET["ver"]<br />$_GET["datum"]<br />$_GET["unit"]<br />$_GET["lat"]<br />$_GET["lon"]<br />$_GET["alt"]<br />$_GET["time"]<br />$_GET["smaj"]<br />$_GET["smin"]<br />$_GET["vert"]<br />$_GET["majaa"]<br />$_GET["fm"]<br /><br /><br />gpsinfo.phpの例：<br />&lt;?<br />$lat=$_GET["lat"];<br />$lon=$_GET["lon"];<br />chop($lat);/<br />chop($lon);<br />$lat_s = explode(".", $lat);<br />$lon_s = explode(".", $lon);<br />$lat_deg=$lat_s[0]+$lat_s[1]/60+$lat_s[2]/3600+$lat_s[3]/360000;<br />$lon_deg=$lon_s[0]+$lon_s[1]/60+$lon_s[2]/3600+$lon_s[3]/360000;<br /><br />echo "$_GET["ver"]&lt;br&gt;";<br />echo "$_GET["datum"]&lt;br&gt;";<br />echo "$_GET["unit"]&lt;br&gt;";<br />echo "$lat_s[0]度$lat_s[1]分$lat_s[2]秒$lat_s[3]&lt;br&gt;";<br />echo "$lon_s[0]度$lon_s[1]分$lon_s[2]秒$lon_s[3]&lt;br&gt;";<br />echo "$lat_deg&lt;br&gt;";<br />echo "$lon_deg&lt;br&gt;";<br />echo "$_GET["alt"]&lt;br&gt;";<br />echo "$_GET["time"]&lt;br&gt;";<br />echo "$_GET["smaj"]&lt;br&gt;";<br />echo "$_GET["smin"]&lt;br&gt;";<br />echo "$_GET["vert"]&lt;br&gt;";<br />echo "$_GET["majaa"]&lt;br&gt;";<br />echo "$_GET["fm"]&lt;br&gt;";<br /><br />echo "&lt;a href=http://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;geocode=&amp;q=$lat_deg,$lon_deg&gt;GoogleMapsで表示&lt;/a&gt;";<br />echo "&lt;br&gt;";<br />?&gt;]]>
        
    </content>
</entry>

<entry>
    <title>あとで見る用</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1110122344.html" />
    <id>tag:more-pc.net,2008://1.373</id>

    <published>2008-11-10T03:23:44Z</published>
    <updated>2008-11-27T02:14:12Z</updated>

    <summary>最近そんなのばっかり。 http://www.nicovideo.jp/watc...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="雑記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>最近そんなのばっかり。</p>

<p>http://www.nicovideo.jp/watch/sm3556960</p>

<p>http://www.nicovideo.jp/watch/sm5198161</p>]]>
        
    </content>
</entry>

<entry>
    <title>Vista に Cygwin をインストール [解決編]</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1028203033.html" />
    <id>tag:more-pc.net,2008://1.370</id>

    <published>2008-10-28T11:30:33Z</published>
    <updated>2008-12-15T23:53:05Z</updated>

    <summary>/etc/postinstall/gnuplot.sh あたりを何かしているとこ...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="cygwin" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>/etc/postinstall/gnuplot.sh<br />
あたりを何かしているところで止まる。<br />
(他にも2つぐらい、止まってしまうシェルスクリプトがあったけれど名前忘れた)</p>

<p>セットアップをいったんキャンセルして、Explorer 上で問題のシェルスクリプトをどこかに移動。<br />
で、もう一度セットアップを実行。</p>

<p>この繰り返しでOK。</p>

<p>移動したシェルスクリプトが気になるなら、インストール後に元の位置に戻して、<br />
cygwin 上からパスを指定して実行してやる。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Vista で Cygwin/X を使う [解決編]</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/1028202840.html" />
    <id>tag:more-pc.net,2008://1.369</id>

    <published>2008-10-28T11:28:40Z</published>
    <updated>2008-12-15T23:54:00Z</updated>

    <summary>C:\cygwin\bin\ash.exe を起動。 $ /bin/rebase...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="cygwin" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>C:\cygwin\bin\ash.exe を起動。</p>

<p>$ /bin/rebaseall<br />
を実行。</p>

<p>プロンプトが戻ってきたらOK。</p>]]>
        
    </content>
</entry>

<entry>
    <title>あーあ</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/0729182029.html" />
    <id>tag:more-pc.net,2008://1.368</id>

    <published>2008-07-29T09:20:29Z</published>
    <updated>2008-11-27T02:12:02Z</updated>

    <summary>任天堂他、ニンテンドーDSで動作する「マジコン」販売5社を提訴...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="雑記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p><a href="http://headlines.yahoo.co.jp/hl?a=20080729-00000000-isd-game">任天堂他、ニンテンドーDSで動作する「マジコン」販売5社を提訴</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>変態、じゃなかった、編隊</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/0719030354.html" />
    <id>tag:more-pc.net,2008://1.366</id>

    <published>2008-07-18T18:03:54Z</published>
    <updated>2008-07-18T18:04:24Z</updated>

    <summary>大きな地図で見る...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="雑記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p><iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;geocode=&amp;q=49.38215025547208+,+0.03302683476073502&amp;ie=UTF8&amp;ll=49.388351,0.037251&amp;spn=0.0025,0.003895&amp;t=h&amp;z=14&amp;iwloc=addr&amp;output=embed&amp;s=AARTsJrnfCcaSwa1Qq9zEnJGVCdoecZdYA"></iframe><br /><small><a href="http://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;geocode=&amp;q=49.38215025547208+,+0.03302683476073502&amp;ie=UTF8&amp;ll=49.388351,0.037251&amp;spn=0.0025,0.003895&amp;t=h&amp;z=14&amp;iwloc=addr&amp;source=embed" style="color:#0000FF;text-align:left">大きな地図で見る</a></small></p>]]>
        
    </content>
</entry>

<entry>
    <title>cygwin と携帯動画変換君がコンフリクトしていた件 [解決編]</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/0616115554.html" />
    <id>tag:more-pc.net,2008://1.365</id>

    <published>2008-06-16T02:55:54Z</published>
    <updated>2008-12-15T23:55:01Z</updated>

    <summary>cygwin 付属の cygwin1.dll を使わせれば良いだけだった。 co...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="cygwin" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>cygwin 付属の cygwin1.dll を使わせれば良いだけだった。</p>

<p>copy /Y C:\cygwin\bin\cygwin1.dll <携帯動画変換君の cygwin1.dll のあるパス></p>

<p>#cygz.dllも消したほうがいいのかな？</p>]]>
        
    </content>
</entry>

<entry>
    <title>あとで見る用</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/0615225207.html" />
    <id>tag:more-pc.net,2008://1.364</id>

    <published>2008-06-15T13:52:07Z</published>
    <updated>2008-11-27T02:10:50Z</updated>

    <summary></summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="雑記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/jJwni1Q5U48"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/jJwni1Q5U48" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object></p>]]>
        
    </content>
</entry>

<entry>
    <title>ロリポップのアクセスログを自動でダウンロードする [ cygwin + cron ]</title>
    <link rel="alternate" type="text/html" href="http://more-pc.net/archives/2008/0608203523.html" />
    <id>tag:more-pc.net,2008://1.362</id>

    <published>2008-06-08T11:35:23Z</published>
    <updated>2008-12-15T23:59:33Z</updated>

    <summary>以前の ロリポップ(lolipop)のアクセスログを自動ダウンロードする(Lin...</summary>
    <author>
        <name></name>
        
    </author>
    
        <category term="cygwin" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://more-pc.net/">
        <![CDATA[<p>以前の<br />
<a href="http://more-pc.net/archives/2008/0110113544.html">ロリポップ(lolipop)のアクセスログを自動ダウンロードする(Linux+wget+Perl)</a><br />
を cygwin 環境で動かすことにした。</p>

<p>ログをダウンロードするパスと、文字コードを確認したら cygwin の cron に登録。<br />
% crontab -e</p>

<p>で、cron を Windows のサービスとして起動。<br />
% cygrunsrv --install cron --path /usr/sbin/cron --args -D</p>

<p><br />
cron 起動は<br />
cygrunsrv --start cron<br />
でも、Windows の「管理」-「サービス」で起動させても同じことなので好きなほうで。</p>

<p>終わり。</p>]]>
        
    </content>
</entry>

</feed>
