2006/05/31

女生鞋各國尺寸對照表

女生鞋各國尺寸對照表

德國 英國 美國 日本
35 2 4
21
35.5 2.5 4.5
21.5
36
3
5
22
36.5 3.5 5.5
22.5
37
4
6
23
37.5 4.5 6.5
23.5
38
5
7
24
38.5 5.5 7.5
24.5
39
6
8
25
39.5 6.5 8.5
25.5
40 7
9
26
40.5 7.5 9.5
26.5
41 8
10 27
41.5 8.5
10.5 27.5
42 9
11 28
42.5 9.5
11.5 28.5
43 10 12
29
43.5
10.5 12.5 29.5

男生鞋各國尺寸對照表

男生鞋各國尺寸

德國 英國 美國 日本
39 5 5.5 24
39.5 5.5 6 24.5
40 6 6.5 25
40.5 6.5 7 25.5
41 7 7.5 26
41.5 7.5 8 26.5
42 8 8.5 27
42.5 8.5 9 27.5
43 9 9.5 28
43.5 9.5 10 28.5
44 10 10.5 29
44.5 10.5 11 29.5
45 11 11.5 30
46 12 12.5 31
47 13 13.5 32
48 14 14.5 33
49 15 15.5 34
50 16 16.5 35

2006/05/26

BNC Setup Guide

BNC Setup Guide May 25th, 2006.
Printable Version

Joey's BNC Setup Guide
Created on June 12th, 2000.

This weekend, while trying to connect to DALnet via my laptop, my host was autokilled for not having Ident installed. Since I am running IP Masquerading and didn't feel like setting up midentd, I thought I would give BNC a try.

"BNC is a great IRC proxying server under the GPL (General Public License). It allows users to connect to chat servers by bouncing off the computer which is running BNC. Basically, it forwards the information from the user to the server and vise versa."

Please note that this program SHOULD NOT be run as root. Run BNC as your own user or you are potentially opening up your system for exploitation. Also, if you don't set up the configuration file properly, you are basically going to allow other people to use you as an irc proxy. With that said, lets begin.

Let's start off by downloading bnc2.6.4.tar.gz from http://gotbnc.com/download.html. Once you have downloaded it, place it in your home directory and untar the file by running the following:

tar -zxvf bnc2.6.4.tar.gz

That will create a new directory called bnc2.6.4, enter it and enter the following commands to compile the program.

./configure
make

Once that has finished, copy the example.conf to bnc.conf. Now before we edit the bnc.conf you will want to pick a password that you will have to enter each time you connect to your BNC server. This password should not be easily guessed.

With that said, type mkpasswd and you should see something that looks like this:

plaintext:

Just type the password you want to use, and it will spit out something that looks like: .eAE2V8lLMG3c

Copy the encrypted password and then open up the bnc.conf with your favorite editor. Scroll down to the bottom of the file and you will see this:

# EXAMPLE CONFIG - CHANGE THIS:
# if your pass starts with + it is encrypted, if not it is a normal pass
#
S:+qcNQHJfDIAfhQ
D:9000:0:testpass
W:1
A:1:*

Erase the encrypted password from the S: line and paste in your own. So if your encrypted pass was .eAE2V8lLMG3c, then S: should read:

S:+.eAE2V8lLMG3c

Next up is the D: line. Pick a port number that you like, which is currently not being used on your machine, such as 6969 and replace the 9000 default. The next field is :0:, that is the max users, with 0 meaning unlimited. If you're the only one that will be using the BNC proxy, then I suggest changing this to 1, just for security reasons. The next field is a password that allows you to connect to an outside server. This again should probably be encrypted so use the mkpasswd utility again.

The next field we will look at is A:. The default allows anyone from anywhere to connect to you. Not a good idea. Like I said in the beginning, I am using BNC via my laptop, so here I placed my laptops internal LAN IP, 192.168.0.2. So the A: line should read:

A:1:192.168.0.2

Once the bnc.conf is fully edited, save & exit the file. Now you can start it up (as your regular user, NOT ROOT) by typing bnc. You should see something like the following:

(lyte@linuxhelp.net) ~/bnc2.6.4# bnc
Irc Proxy v2.6.4 GNU project (C) 1998-99
Coded by James Seter :bugs-> (Pharos@refract.com) or IRC pharos on efnet
--Using conf file bnc.conf
--Configuration:
Daemon port......:6969
Maxusers.........:1
Default conn port:6667
Pid File.........:./pid.bnc
Vhost Default....:-SYSTEM DEFAULT-
Process Id.......:18313
Exit bnc{7} :Successfully went into the background.

That means it's working. Now try to connect to your bnc proxy by loading up an IRC client and typing /server your-bnc-proxys-host.com 6969. It will as you for your password, which is the one that replaces "testpass". Enter in your password by typing /quote pass yourpassword. Then it will move on to the next stage and ask you what server you would like to connect to. Connect to a server by running the following example:

/quote conn irc.dal.net

That should get you onto your IRC network. If your machine also has vhosts, you can specify them in the bnc.conf.

有關proxy尋找的工具

http://www.proxyblind.org/free.shtml

在Linux上把nrg轉成iso

安裝nrg2iso
http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html

在Linux上解7zip格式的檔案

安裝p7zip,到下列網址找source
http://p7zip.sourceforge.net/

RPM檔在下列網址找:
http://timeoff.wsisiz.edu.pl/rpms.html

常用的QP碼轉Big5的Perl Script

把QP碼貼到big5.txt,然後執行下列script

#!/usr/bin/perl

use MIME::Base64;
# Convert Base64 Or Quoted-printable TO Text
open(F,'./big5.txt');
while() {
if ($_=~/=\?[\w-]+\?B\?(.*)\?=$/) {
$_ = decode_base64($1);
};
if ($_=~/=\?[\w-]+\?Q\?(.*)\?=$/) {
use MIME::QuotedPrint;
$_ = decode_qp($1);
};
print "$_\n";
}
close(F);

exit(0);

2006/05/23

是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集

http://ntu.csie.org/~piaip/
Fri Aug 27 18:50:23 CST 2004
我稱之 Bug5 的 Big5 中文內碼終於有可以算新一代的標準出來了: Big5-2003 。 以後要讓軟體 implement Big5 時可以使用此標準。
說到 Bug5 就要再來找找 Bug5 的問題。 今天要告訴大家一個句子, 可以用來測你的系統會不會被 Bug5 弄爛。
「是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集」
這個句子包括了大部份容易出問題的 Big5 字代表, 你可以試試把檔案取成這個名字,然後 FTP 上傳/下載,或是丟 URL/CGI/blah blah 試試看。 令人並不意外的是, 超過一半的系統會出問題...

是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集

2006/05/22

砍掉mqueue中是垃圾信回寄的queue

用bash把df*的前100行內有SPAM的檔案抓出來:
---------------------
if [ -f z1.txt ]
then
rm z1.txt
fi
for i in `ls df*`
do head -100 $i | grep SPAM && echo $i |cut -c4-16|sort|uniq >> z1.txt
done
---------------------

砍掉這些檔:
---------------------
for i in `cat z1.txt`
do rm `ls ???$i`
done
--------------------

抓出有什麼字串的queue檔名:
--------------------
grep "$1" q* Q* |cut -c4-16|sort|uniq > z1.txt
--------------------

用HTML::Scrubber把HTML格式淨化簡化

從Word另存成html格式,令人不敢恭維,沒幾個字的檔案,
就肥化成數十K的檔案,用這肥檔寄公告信實不妥;
總算發現HTML::Scrubber可輕易做到這簡化的功能。

use HTML::Scrubber;
my $scrubber = HTML::Scrubber->new( allow => [ qw[ center a b i u hr p br table tr td th] ] );
$scrubber->rules(
table => {
border => 1
},
td => {
colspan => 1
},
b => 1,
i => 1,
a => {
href => 1
}
);


$filename = $ARGV[0];
$html = $scrubber->scrub_file("$filename");

print $scrubber->scrub($html); ## returns giant string