分类 自由点击 下的文章

nginx

问题:

nginx error – 413 Request Entity Too Large

解决:

1,在 nginx.conf 配置文件中:client_max_body_size 8M;

vim /etc/nginx/sites-available/reistlin.com
 
server {
 
client_max_body_size 8M;
 
}

2,重新启动 nginx 服务

/etc/init.d/nginx reload

linux

1. 编译:

./configure –prefix=/home/apache \
–enable-module=so \
–enable-module=rewrite \
–activate-module=src/modules/fastcgi/libfastcgi.a

2. 配置:

vi /home/apache/conf/httpd.conf

<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
 
<IfModule mod_rewrite.c>
 
RewriteEngine On
RewriteLog /home/apache/logs/rewrite_log
RewriteLogLevel 0
 
</IfModule>

3. 测试:

重新启动Apache

/etc/init.d/httpd restart

检查Apache静态编译模块

/home/apache/bin/httpd -l

mozbackup_01.gif

MozBackup – Backup tool for Firefox and Thunderbird

MozBackup 是一个备份和还原 Mozilla Firefox、Mozilla Thunderbird、Mozilla Sunbird、Flock、Mozilla Suite、 Seamonkey、Spicebird 和 Netscape 等软件个人配置文件的免费工具。

可以协助您备份及还原书签、联系人、邮件、浏览历史、插件、缓存和其他相关资料,最新版本更支持增量备份。

本软件适用与 Windows 98/ME/NT/2000/XP/2003/Vista/Windows 7 (32bit/64bit) 并且完全免费。

- 阅读剩余部分 -

opendns.gif

208.67.222.222
208.67.220.220

About OpenDNS

[OpenDNS] is the leading provider of free security and infrastructure services that make the Internet safer through integrated Web content filtering, anti-phishing and DNS. OpenDNS services enable consumers and network administrators to secure their networks from online threats, reduce costs and enforce Internet-use policies. OpenDNS is used today by millions of users and organizations around the world.

ntp.gif

0.asia.pool.ntp.org
1.asia.pool.ntp.org
2.asia.pool.ntp.org
3.asia.pool.ntp.org

About pool.ntp.org

The [pool.ntp.org] project is a big virtual cluster of timeservers striving to provide reliable easy to use NTP service for millions of clients without putting a strain on the big popular timeservers.

ibus_01.gif

http://code.google.com/p/ibus/downloads/list

ibus_02.gif

About iBus

Welcome to [iBus] project! It is a next generation input framework
Intelligent Input Bus for Linux / Unix OS

wqy_01.gif

关于点阵汉字开发

对于常见的计算机操作系统,字体的显示算法需要一些字体的信息来优化屏幕显示效果,英文称为 hinting。汉字由于笔画复杂,所以 hinting 的方式与西文截然不同。使用在汉字字体中嵌入预先制作的点阵位图既可以有效地避免 hinting 算法带来的计算开销,同时屏幕上显示的汉字边缘清晰,易于阅读。下面就是使用点阵显示和不使用点阵显示的两个例子:

未使用点阵中文的显示效果:

wqy_02.gif

使用点阵中文的显示效果:

wqy_03.gif

About 文泉驿

[文泉驿]是一群致力于在计算机世界中推广汉字,丰富电子汉字资源的志愿者,我们希望通过自己无私的劳动,使得无论你在世界上任何一个角落,都可以免费地获得我们的电子汉字资源,能够流畅地通过汉字进行交流。“文泉驿”是以上述目标为宗旨而自发创建的非盈利性组织。

持续更新中!

perl -MMail::Sender -e ''Mail::Sender->printAuthProtocols("smtp.reistlin.com")'';

#!/usr/bin/perl
 
use strict;
use Data::Dumper;
use Mail::Sender;
 
# debug switch
my $debug = 0;
 
my $sender = new Mail::Sender();
 
if ($sender->MailMsg({
	smtp => ''smtp.reistlin.com'',
	from => ''发件人@reistlin.com'',
	to => ''收件人@reistlin.com'',
	subject => "subject",
	msg => "message",
	auth => ''LOGIN'',
	authid => ''username'',
	authpwd => ''password'',
}) < 0) {
	die "$Mail::Sender::Error\n";
}
 
print "Mail Sent OK\n"

linux

环境:

Debian 6 zlib-1.2.5 openssl-1.0.0d libssh2-1.2.8

问题:

错误信息:

collect2: ld returned 1 exit status
[scp_nonblock] Error 1
[all-recursive] Error 1

collect2: ld returned 1 exit status
make[2]: *** [scp_nonblock] Error 1
make[2]: Leaving directory `/home/www-data/pkgs/build/libssh2-1.2.8/example''
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/www-data/pkgs/build/libssh2-1.2.8/example''
make: *** [all-recursive] Error 1

解决:

编译参数(+):LDFLAGS=-ldl

./configure --with-openssl --with-libssl-prefix=/usr/local/ssl/ LDFLAGS=-ldl

make clean
 
./configure --with-openssl --with-libssl-prefix=/usr/local/ssl/ LDFLAGS=-ldl
 
configure: summary of build options:
 
  version:          -
  Host type:        i686-pc-linux-gnu
  Install prefix:   /usr/local
  Compiler:         gcc
  Compiler flags:   -g -O2
  Library types:    Shared=yes, Static=yes
  Crypto library:   openssl: yes (AES-CTR: no) libgcrypt: no
  Debug build:      no
  Path to sshd:     /usr/sbin/sshd (only for self-tests)
  libz compression: yes
 
make
make install

linux

环境:

Debian 6 zlib-1.2.5 libpng-1.4.4

zlib-1.2.5 安装路径:$HOME/lib/zlib-1.2.5
(ln -s $HOME/lib/zlib-1.2.5 $HOME/lib/zlib)

libpng-1.4.4 安装路径:$HOME/lib/libpng-1.4.4
(ln -s $HOME/lib/libpng-1.4.4 $HOME/lib/libpng)

问题:

checking for zlibVersion in -lz... no
configure: error: zlib not installed

分析:

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor

解决:

export LDFLAGS="-L $HOME/lib/zlib/lib"
export CPPFLAGS="-I $HOME/lib/zlib/include"

./configure --prefix=$HOME/lib/libpng-1.4.4
make
make install

windows.gif

Windows 系统 RDP(Remote Desktop Protocol)远程桌面默认端口为:3389,修改为:5900
保存为 .reg 注册表文件。可根据需要,自己设定端口(16进制)。

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]
"PortNumber"=dword:0000170C
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
"PortNumber"=dword:0000170C