揮発性のメモ2

http://d.hatena.ne.jp/iww/

2023-11-01から1ヶ月間の記事一覧

テーブルの幅をセルの幅の合計に合わせる

css

テーブルの幅をセルの幅の合計に合わせるには、 width: fit-content; を使用する。 <div style="overflow: auto;"> <table style="width: fit-content; table-layout: fixed;"> <colgroup> <col style="width:150px;"> <col style="width:150px;"> <col style="width:150px;"> <col style="width:150px;"> <col style="width:150px;"> </col></col></col></col></col></colgroup></table></div>

jessieのsource.list

変更前 deb http://ftp.jaist.ac.jp/debian/ jessie main deb-src http://ftp.jaist.ac.jp/debian/ jessie main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main deb http://ftp.jaist.ac.jp…

netcatで udpを受信する

ポート30000で受信するテスト netcat -v -l -k -u -p 30000 -v Verbose ちょっとした情報を表示 -l Listen 待ち受け -k Keep 着信後も待ち受けを続ける -u UDP -p port Port ローカルのポート番号指定 -k を指定し忘れると最初のセッションで受信してそれっ…

Debianで、netcatをインストールする

netcatはなんだかいろいろな種類があって混乱する。 netcat-openbsd OpenBSD版。 Debianでは一番強い? /usr/bin/nc -> /etc/alternatives/nc -> /bin/nc.openbsd /usr/bin/netcat -> /etc/alternatives/netcat -> /bin/nc.openbsd ncat Nmap版。最強らしい…