Archive for January, 2010

Tongzhou Canal,Beijing

January 10th, 2010

通州运河 Tongzhou Canal

Creek cheer

January 10th, 2010

08年中溪畔欢声     Creek cheers

Raising the daisy family

January 10th, 2010

家中养的雏菊

Raising the daisy family

Bellis perennis is a common European species of Daisy, often considered the archetypal species of that name. Many related plants also share the name “Daisy”, so to distinguish this species from other daisies it is sometimes qualified as Common Daisy, Lawn Daisy or occasionally English daisy. It is native to western, central and northern Europe. The species is widely naturalised in North America,[1] and also in South America.

Growth

It is a herbaceous plant with short creeping rhizomes and small rounded or spoon-shaped evergreen leaves 2–5 cm long, grows close to ground. The flowerheads are 2–3 cm in diameter, with white ray florets (often tipped red) and yellow disc florets; they are produced on leafless stems 2–10 cm (rarely 15 cm) tall. The lawn daisy is a dicot.

» Read more: Raising the daisy family

Jian Jiao done at home over the weekend.

January 10th, 2010

Jian Jiao done at home over the weekend.

Normal work always busy, today, weekend breaks, and they are doing Jian Jiao!

» Read more: Jian Jiao done at home over the weekend.

2006, SOHO Xiandaicheng ,Beijing Photos

January 9th, 2010

2006年 SOHO现代城照片

2010年个人网站倒闭年

January 8th, 2010

  对个人来说,个人网站相当于街头卖烤白薯的流动摊位,他可以在网上自食其力,多劳多得。 对工商税务部门来说,个人网站是逃费、逃税的个体户。 对工信部广电部来说,个人网站是出了问题推卸不了管理责任的个体户。 对有关部门来说,个人网站是最好欺负、最容易被不上网的老百姓支持的打击对象。

schroot – chroot for any users

January 7th, 2010

From manpages: schroot allows the user to run a command or a login shell in a chroot environment. If no command is specified, a login shell will be started in the user current working directory inside the chroot.

I’ve been trying some virtual machines solutions to execute some programs 32bits in my machine. But it’s take very time, start a xen VM or virtualbox. Often this solutions needs some maintain additional costs to setup a X server to run any X-based program.

» Read more: schroot – chroot for any users

OpenSSH logging with ChrootDirectory

January 7th, 2010

Finally following up on the previous article on the subject, I found some time to investigate logging what happens in an internal-sftp session using rsyslog.

Making syslog available in the chroot

Simply create a dev directory in each one of the chosen user chroot directories.

# mkdir /home/user/dev

Configuring rsyslog to probe the new logging source

Simply drop the following contents in /etc/rsyslog.d/sshd.conf :

# Create an additional socket for some of the sshd chrooted users.
$AddUnixListenSocket /var/fileserv/dev/log

# Log internal-sftp in a separate file
:programname, isequal, "internal-sftp" -/var/log/sftp.log
:programname, isequal, "internal-sftp" ~

 » Read more: OpenSSH logging with ChrootDirectory

inux: rm and the ‘Argument list too long’ error message.

January 6th, 2010

Linux: rm and the ‘Argument list too long’ error message.

Linux: rm and the ‘Argument list too long’ error message.


Let’s say you wanted to delete all the files in a directory that begins with the word ’spam’:

[root@yoursite filter]# rm spam*

bash: /bin/rm: Argument list too long

ERROR!

This happens when you are trying to delete too many files in a directory at the same time – it seems rm has limits ….

To solve the problem:

Use ‘find’ to pipe all the matching files to ‘rm’, one at a time.

[root@yoursite filter]# find . -name ’spam*’ | xargs rm

» Read more: inux: rm and the ‘Argument list too long’ error message.

google PR值更新

January 5th, 2010

2010.1.3  早上发现我的一个网站google的PR更新了,moon52.com PR 由原来的1 变成2。  但我的技术网站 scanmon.com PR没有变化,看来google这次更新要比大家预计的早一些时间,原本认为要1月底才会更新。 稍后的2周大家要留意一下自己网站的pr是否改变。 » Read more: google PR值更新