Notes: February 2005 Archives

sftp speed

| | Comments (1)

不同的 client 軟體, 使用 sftp 傳檔, 沒想到速度差異如此大
以下是在我環境下測的結果, server 同一台, 抓同一個 20MB 的檔
CuteFTP Pro 6.0    137 KB/s
FileZilla 2.2.11    36X KB/s
WinSCP 3.7.4    3.3 MB/s
SSH Secure File Transfer Client 3.2.5    4.1 MB/s
Linux sftp    4.1 MB/s

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]
@="notepad.exe"

regedit /e PuTTY.reg HKEY_CURRENT_USER\Software\SimonTatham

PuTTY: A Free Telnet/SSH Client

Apache simple auth

| | Comments (0)

Example:
Add auth in directory /home/pank/public_html/auth
User pank, password 1111

  1. Create .htaccess (in /home/pank/public_html/auth)
    AuthName "Simple Auth"
    AuthType Basic
    AuthUserFile "/home/pank/public_html/auth/.htpasswd"
    require valid-user
  2. Create .htpasswd
    htpasswd -cb .htpasswd pank 1111
    (-c for Create a new file, -b for Use the password from the command line rather than prompting for it)
    htpasswd -b .htpasswd test 2222
  3. Edit httpd.conf
    <Directory "/home/pank/public_html/auth">
      AllowOverride All
    </Directory>
  4. Restart Apache

Add SCode to MT

| | Comments (0)

I think SCode is the best solution to fight comment spam for MT
SCode needs GD and GD.pm
install gd, libpng first (ports/graphics/gd, ports/graphics/png)
./configure --with-png when build GD or cd /usr/ports/graphics/gd; make WITH_XPM=yes
to build GD.pm, needs perl 5.6 or higher
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.30.tar.gz
perl Makefile.PL
make
make test (optional)
make html (optional)
make install
ref.
防制發廣告機器人的檢核碼
Blog comment spam fighting
An easy way to get rid of MT comment spam

凱莉手工坊

凱莉手工坊

July 2009

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

About this Archive

This page is a archive of entries in the Notes category from February 2005.

Notes: January 2005 is the previous archive.

Notes: March 2005 is the next archive.

Find recent content on the main index or look in the archives to find all content.