Speeding up dynamic websites via an nginx proxy

February 20th, 2010 by jacky No comments »

Many of us are familiar with the use of Apache for hosting websites. It might not be the fastest webserver but it is extraordinarily popular, extremely flexible, and a great choice for most people. However there are times when it can struggle, and placing a proxy in front of it can be useful.

nginx is a very small, fast, and efficient HTTP server with a lot of built in smarts to allow it to work as a reverse proxy, and not just for HTTP, it also supports SMTP.

» Read more: Speeding up dynamic websites via an nginx proxy

installing nginx + php-fpm using centos.alt.ru & EPEL repo in CentOS

February 20th, 2010 by jacky No comments »

I have create post about installing nginx + php-fpm from source before in here http://adityo.blog.binusian.org/?p=428. In this tutorial i will create a more simple way installing nginx + php-fpm using yum with centos.alt.ru & EPEL repo.

Here it’s goes:

- Create repo
# cd /etc/yum.repos.d
# vim rusia-repo.repo

- and paste this

[rusia-repo]
name=CentOS-$releasever – rusia packages for $basearch
#baseurl=file:///raid/RH/CentOS/$releasever/local/$basearch
baseurl=http://centos.alt.ru/pub/repository/centos/5/i386/
enabled=1
gpgcheck=0
protect=1

- Enable EPEL repo
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/$(uname -m)/epel-release-5-3.noarch.rpm

- Install nginx and php-fpm

# yum install nginx php-fpm

» Read more: installing nginx + php-fpm using centos.alt.ru & EPEL repo in CentOS

Lightweight X11 Desktop Environment

January 28th, 2010 by jacky No comments »

LXDE is a GPL licensed open source desktop environment for Unix and other POSIX compliant platforms, such as Linux. The name LXDE stands for “Lightweight X11 Desktop Environment”.

LXDE is an energy saving and extremely fast and performing desktop solution. It works well with computers on the low end of the performance spectrum such as new generation netbooks and other small mobile computers. LXDE is designed for cloud networks such as local freifunk clouds or the global Internet cloud. It can be built on top of various Linux distributions such as Ubuntu or Debian. It provides a fast desktop experience connecting easily with applications in the cloud and supports a wealth of programs, that can be installed with Linux systems locally. LXDE already supports many computer processor architectures including Intel, MIPS and ARM.

The LXDE project started 2006 when Hong Yen Jee from Taiwan, known as PCMan, published the first component PCMan File Manager. Today the LXDE team has grown into an international community of developers, designers and contributors from all over the world.

» Read more: Lightweight X11 Desktop Environment

study-english-34324

January 28th, 2010 by jacky No comments »

每日一句
Why should you yell bloody murder to the boss?

你为什么一定要和老板大吵大闹?

—————————————————————————————————
我们经常用动词shout表示汉语的“吵闹”,其实这个词最核心的意思是“大声地叫喊”(make a loudy strong cry),并没有能传达出“闹”的成分和“吵”的语气。英语口语中有个yell bloody murder的说法,即包含了“吵”的架势,也包含了“闹”的色彩。

yell bloody murder,字面意思就是,像看到血腥谋杀一样地叫嚷,就像汉语中经常使用到的那个比喻“杀猪一样的嚎叫”,是很生动的一个短语。另外,英国口语中很少 使用bloody这个词,因此当英国人在表示“大吵大闹”的概念时,一般习惯使用scream blue murder。
例句:
He’ll yell bloody murder to me if he knows I’ve told you this.
如果他知道我把这个消息告诉了你,一定会跟我大吵大闹的。
When she learned that her husband had dated other girls, she started yelling bloody murder.
当她得知他的丈夫和别的女孩子约会时,她就大吵大闹起来。 » Read more: study-english-34324

study-english-01-27

January 28th, 2010 by jacky No comments »

每日一句
I find amusement in collecting stamps.

我发现了集邮的乐趣。

————————————————————————————
amuse,消遣,娱乐,使……发笑
例句:The boys amuse themselves by drawing caricatures of their teacher.
男孩子们以画老师的漫画取乐。

每天一诗

A  BLOSSING  TREE

How to let you meet me.

At my most beautiful moment?

For this ,I’ve played to Buddha for five hundred years.

To be bestowed a relationship with you on this earth.

So,Buddha makes me a tree,

Growing by the road you are bound to take.

Blooming cautionsly and fourishing of my previous life.

When you approach,please listen,

The trembling leaves are the passion lf my waiting.

But when at last you walk past unseeing

What lies scattered on the ground behind you.

On my friend ,is not petals

But my withered heart.

一棵开花的树

如何让你遇见我

在我最美的时刻

为此,我已在佛面前,求了五百年

求他让我们结一段缘

佛于是把我化作一棵树

长在你必经的路旁

朵朵都是我前世的盼望

当你走近,请你细听

那颤抖的叶是我等待的热情

而你终于无视地走过

在你身后落了一地的

朋友啊,那不是花瓣

是我凋零的心

Research on the image watermarking

January 28th, 2010 by jacky No comments »

ScanMom studio pictures have recently been doing research to play a watermark, image watermark is a very good fight against Daolian way, even if you picture was reproduced, with your website logo is a good means of publicity.

I am not a programmer universal use GD library, but the method of ImageMagic software, you can go to the official website to download to use, and detailed instructions (in English). With the program can batch image watermarking problem

This article comes from: http://jk.scanmon.com/en/wp/2010/01/about_image_watermark.html

Have this problem on video in the Jacky on the message, ScanMom studio has also done technical support in this regard http://www.scanmon.com

Jacky for everyone to look at the picture I did add watermark

ImageMagick is a stable set of tools and development kits that can be used to read, write and deal with more than 89 kinds of basic format of the image files, including the popular TIFF, JPEG, GIF, PNG, PDF, and PhotoCD and other formats. The use of ImageMagick, you can web applications according to the needs of dynamically generated images, but also can be a picture or picture sequence to change the size, rotation, sharpening, subtractive or add special effects and results of operations in the same format or other format . The operation of the picture can be carried out through the command line, you can also use C / C + +, Perl, Java, PHP, Python, or Ruby programming to complete. ImageMagick also provides a high-quality 2D tool kit, in part to support SVG. Now, ImageMagic the main focus on performance, reduce the bug and providing a stable API and ABI on.
ImageMagick powerful, but it is free of charge.
ImageMagick functions
1. The pictures from one format to another format, including direct convert ico icon.
2. To change the size, rotation, Sharpen (sharpen), subtractive, picture effects
3. Thumbnails synthesis map (a montage of image thumbnails)
4. Suitable for the background of a transparent web images
5. Will be a group of pictures made gif animation, direct convert
6. Will be a few pictures made of a combination of image, montage
7. Write or draw a picture graph, with text shadows and border rendering.
8. To the Canadian border or frame pictures
9. Get some pictures of the characteristics of information
10, almost including the regular gimp plug-in functionality can be done. Even the rendering of various curve parameters. Just the wording of the command, complicated enough.
ImageMagick almost any non-proprietary operating system, compiler, both 32-bit or 64-bit CPU, including * nix, Windows ‘95 / ‘98 / ME / NT 4.0/2000/XP, Macintosh (MacOS 9 / 10 ), VMS, and OS / 2.

» Read more: Research on the image watermarking

317 days a computer running the server off the shelf

January 22nd, 2010 by jacky No comments »

一台运行317天的今天服务器下线维护,在次之前该服务器一直负担这服务器集群调度的工作,本来认为这台服务器可以一直运行下去,但是根据公司要换机房的决定,这台服务器只好在机房下架 。 服务器型号 dell 1850  ,运行系统 debian 5 ,运行业务软件 lvs。

A computer running 317 days of today the server downtime for maintenance, in the second until the server has to pay for the server cluster scheduling work, would have thought that this server can be running forever, but the incumbent, according to the company’s decision room, this server had no choice but room off the shelf. Server model dell 1850, operating system debian 5, run business software lvs。

Typical Configurations Overview For Nginx HTTP(S) Reverse Proxy/Web Server

January 21st, 2010 by jacky No comments »

In one of my previous posts I have described very powerful Unix admin tool – Nginx. As I said, main problem of this server is lack of English documentation. That is why I decided to write this post with list of typical nginx configurations and example configuration snippets for these configurations. » Read more: Typical Configurations Overview For Nginx HTTP(S) Reverse Proxy/Web Server

rndc-key rebuild

January 17th, 2010 by jacky 1 comment »
metaserver:/etc/bind# rndc reload
rndc: connection to remote host closed
This may indicate that
* the remote server is using an older version of the command protocol,
* this host is not authorized to connect,
* the clocks are not syncronized, or
* the key is invalid.

use "rndc-confgen" command  rndc-key rebuild
#rndc-confgen -a

/etc/init.d/bind9 restart    //OK!

varnish 允许客户端强制更新

January 17th, 2010 by jacky No comments »

varnish 允许客户端强制更新

varnish   Enable force-refresh from clients

当接收来自客户端的“强制刷新”的要求,这个配置会从后端服务器提取内容要求,更新缓存,并提供给客户。

对于大型缓存,履行不从客户缓存请求最好的处理是通过设置在vcl_hit obj.ttl = 0和重新启动的要求。这是最好调用您的VCL purge_url,因为它避免了建立一个大型清洗名单和可能耗尽内存资源。

看到这个细节上的邮件列表的讨论。

» Read more: varnish 允许客户端强制更新