31. 01.

[试听]:曾经拥有-南方二重唱

【曾经拥有】

挂上电话以后 往事纷涌上心头
喧腾的四周不禁沉默
当年不知天高地厚 狂妄地神采依旧
而今未完的梦想 已交给岁月执着
我们还不都是被理想牺牲的过客
不是感伤从前 而是慨叹事过境迁曾经拥有
想要飞翔流浪 漂泊的梦已被现实的生活占有
那个最痴情的朋友 还不是接受了另一个温柔
调上浓烈的酒 有种想醉的冲动
深夜的街头和寂寞邂逅
万家灯火依然闪烁 世事的起起落落
很清楚没有什么是 绝对的天长地

词:林明桦
曲:曹登昌 编曲:施孝荣
歌手:南方二重唱


29. 01.

由不得我不去赞美,思念

即便她是出自工匠的作品

一块大材料,被赋予了生命,雕琢掉美丽轮廓外的杂质

她可真是美丽!

眼睛,鼻子,嘴巴还有温情

使你即使在灯光下的正视,都成为邪恶的企图

她可真是美丽!


21. 01.

今天升级下系统,yum -y update时候提示如下错误:
package libstdc++-4.3.0-8.x86_64 (which is newer than libstdc++-4.1.2-46.el5_4.2.i386) is already installed

解决办法:
shell> updatedb
shell> locate libstdc++-4.1.2-46.el5_4.2.i386
/var/cache/yum/update/packages/libstdc++-4.1.2-46.el5_4.2.i386.rpm
shell> rpm -ivh --oldpackage --force /var/cache/yum/update/packages/libstdc++-4.1.2-46.el5_4.2.i386.rpm


14. 01.

一般不需要修改OpenSSH客户端配置文件。对于给定用户,共有两个配置文件,分别是~/.ssh/config(用户专用)和/etc/ssh/ssh_config(全局共享)。要按照该顺序读取这些文件,对于给定的某个参数,它使用的是读取过程中发现的第一个配置。用户可以通过以下方式将全局参数设置覆盖掉:在自己的配置文件中设置同样的参数。在ssh或scp命令行上给出的参数的优先级要高于这两个文件中所设置的参数的优先级。

用户的~/.ssh/config文件必须由该用户所有(他是目录"~/"的所有者),并且除了所有者之外任何人都不能写入该文件。否则客户端就会给出一条错误消息然后退出。这个文件的模式通常被设为600,这是因为除了它的所有者之外任何人都没有理由能够去读取它。

这些配置文件中的配置行包含着声明,这些声明均以某个关键字(不区分大小写)开头,后面是空白,最后是参数(区分大小写)。

可以使用关键字Host来使声明只作用于特定的系统。Host声明作用于它与下一个Host声明之间的所有配置行。在主机名中,可以使用通配符*和?。

Host hostnames

将下面的声明(

直到下一条Host声明)都指定为只适用于hostnames。hostnames采用的格式应该与在命令行上所用的格式一样,而且也能够包含通配符*和?。单个*指定所有主机。

CheckHostIP yes|no

阅读全文 »


1. 01.

一直莫名其妙的遇到类似这样错误:connect() to unix:/tmp/php-fcgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream,N久之后才发现了Igor Sysoev的留言。

原文链接:http://marc.info/?l=nginx&m=125423942216521&w=2

> I found that :
>
> #define NGX_LISTEN_BACKLOG 511
>
> and use it as the backlog of listen()
>
> ls.backlog = NGX_LISTEN_BACKLOG;
> if (listen(s, ls.backlog) == -1) {
>
> Does it mean that only 511 connection could be accept at the same time ?

No, it means that up to 511 connections can be queued in kernel listen
queue. 511 is just a safe limit for the most OSes. For FreeBSD it's -1,
i.e., value of sysctl kern.ipc.somaxconn.

> May I modify it to 1024 or higher( I am sure use it less than SOMAXCONN )

listen 80 default backlog=1024;

--
Igor Sysoev
阅读全文 »


2. 12.

直接举例:
shell> fdisk /dev/hda

The number of cylinders for this disk is set to 5221.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
阅读全文 »


1. 12.

一、PPTP 协议介绍
1、PPTP 简介
PPTP: Point to Point Tunneling Protocol
点对点隧道协议(PPTP)是一种支持多协议虚拟专用网络的网络技术。通过该协议,远程用户能够通过 Microsoft Windows NT 工作站、Windows 95 和 Windows 98 操作系统以及其它装有点对点协议的系统安全访问公司网络,并能拨号连入本地 ISP,通过 Internet 安全链接到公司网络。
PPTP 可以用于在 IP 网络上建立 PPP 会话隧道。在这种配置下,PPTP 隧道和 PPP 会话运行在两个相同的机器上,呼叫方充当 PNS。PPTP 使用客户机-服务器结构来分离当前网络访问服务器具备的一些功能并支持虚拟专用网络。PPTP 作为一个呼叫控制和管理协议,它允许服务器控制来自 PSTN 或 ISDN 的拨入电路交换呼叫访问并初始化外部电路交换连接。
PPTP 只能通过 PAC 和 PNS 来实施,其它系统没有必要知道 PPTP。拨号网络可与 PAC 相连接而无需知道 PPTP。标准的 PPP 客户机软件可继续在隧道 PPP 链接上操作。
PPTP 使用 GRE 的扩展版本来传输用户 PPP 包。这些增强允许为在 PAC 和 PNS 之间传输用户数据的隧道提供低层拥塞控制和流控制。这种机制允许高效使用隧道可用带宽并且避免了不必要的重发和缓冲区溢出。PPTP 没有规定特定的算法用于低层控制,但它确实定义了一些通信参数来支持这样的算法工作。
阅读全文 »


25. 11.

Everything was smooth before i upgrade VirtualBox to version 3.0.12, i can not install a 64bit os, even unables to startup a installed os base on 64bit.

The screen show the error message "NMI Watchdog detected LOCKUP", and i found this via google:

http://forums.virtualbox.org/viewtopic.php?f=3&t=24832

and a guy called kevin.clevenger gave the solution:

Setting the kernel parameter nmi_watchdog=0 (as suggested in another post) works around the issue and gets the client booted. I do not consider this to be a fix however.

1) install the CentOS 5.4 x86_64, boot: linux text nmi_watchdog=0
2) startup the OS, when you see boot loader then press "a" to modify the default boot, add nmi_watchdog=0 in the end, continue booting. this change is only okay for the current boot,  so i suggest editing the "/boot/grub/grub.conf",  and add the "nmi_watchdog=0" at the end of  the line witch looks like:  kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 nmi_watchdog=0


8. 11.

There is no Zend Optimizer for PHP 5.3 currently, so php codes encrypted with Zend Guard do not work.

Zend has promised a new version of Zend Optimiser and Zend Guard for PHP 5.3 later this year. But there is a catch, because of compatibility problems apps encrypted with older Zend Guard versions will probably not work with PHP 5.3 .

source: http://forums.zend.com/viewtopic.php?f=57&t=1365


13. 10.

姓名:周星君
年龄:1.8岁

Title: my cuttttte son!
Location: rental housing in beijing
Cameraman: Kimi & hao32
Date & Time: 2009-10-12 at Night


阅读全文 »