Friday, June 5, 2009
Google debuts Chrome for Mac, Linux
Thursday, June 4, 2009
New Search Tool Google Squared
Wednesday, June 3, 2009
XBOX 360 - Controller-Free Gaming and Entertainment
Tuesday, June 2, 2009
How to Find the Total Number of Files in a Linux Folder
for t in files links directories; do echo `find . -type ${t:0:1} | wc -l` $t; done 2> /dev/null
If you don't want to recurse directories (only count files in the current dir):
for t in files links directories; do echo `find . -maxdepth 1 -type ${t:0:1} | wc -l` $t; done 2> /dev/null
Result:
655 files
6 links
213 directories
Note: Directory count begins at 1 because . is counted as a directory.
Monday, June 1, 2009
Using Nginx as a Reverse Proxy to Get the Most Out of Your VPS
According to Wikipedia:
A reverse proxy or surrogate is a proxy server that is installed in a server network. Typically, reverse proxies are used in front of Web servers. All connections coming from the Internet addressed to one of the Web servers are routed through the proxy server, which may either deal with the request itself or pass the request wholly or partially to the main web servers.
A reverse proxy dispatches in-bound network traffic to a set of servers, presenting a single interface to the caller. For example, a reverse proxy could be used for load balancing a cluster of web servers. In contrast, a forward proxy acts as a proxy for out-bound traffic. For example, an ISP may use a proxy to forward HTTP traffic from its clients to external web servers on the internet; it may also cache the results to improve performance.
There are several reasons for installing reverse proxy servers:
- Security: the proxy server may provide an additional layer of defense by separating or masquerading the type of server that is behind the reverse proxy. This configuration may protect the servers further up the chain - mainly through obfuscation.
- Encryption / SSL acceleration: when secure websites are created, the SSL encryption is sometimes not done by the Web server itself, but by a reverse proxy that is equipped with SSL acceleration hardware.
- Load distribution: the reverse proxy can distribute the load to several servers, each server serving its own application area. In the case of reverse proxying in the neighborhood of Web servers, the reverse proxy may have to rewrite the URLs in each webpage (translation from externally known URLs to the internal locations).
- Caching: A reverse proxy can offload the Web servers by caching static content, such as images, as well as dynamic content, such as a HTML-page rendered by a content management system. Proxy caches of this sort can often satisfy a considerable amount of website requests, greatly reducing the load on the central web server; another term is Web accelerator. This technique is also used for the Wikipedia servers.
- Compression: the proxy server can optimize and compress the content to speed up the load time.
- Spoon feeding: a dynamically generated page can be produced all at once and served to the reverse-proxy, which can then return it to the client a little bit at a time. The program that generates the page is not forced to remain open and tying up server resources during the possibly extended time the client requires to complete the transfer.
Sunday, May 31, 2009
免费代理服务器地址列表
免费韩国代理服务器列表
165.228.128.10:3128
59.10.72.198:8080
125.248.206.194:8080
125.243.249.194:8080
210.107.249.50:3128
210.107.249.50:3124
210.180.39.92:8080
210.102.99.71:38466
免费日本代理服务器列表
58.80.207.41:3128
133.1.16.172:3127
150.65.32.66:3124
203.178.133.2:3128
203.178.133.10:3128
203.178.133.2:3124
203.178.133.3:3127
203.178.133.10:3124
用SSH通道实现虚拟主机做代理服务器
先去下载一个plink,然后在命令行输入:
plink username@xxx.dreamhost.com -D 8000
其实就和连ssh差不多,不过多了一个-D参数,后面的端口号就是一个在本地监听的端口。命令运行后会让你输入密码,之后就可以登入,代理服务器已经可用。
以firefox为例,这时从菜单栏依次选工具->选项->高级,之后选择"网络"标签页,会有一处"配置firefox如何连接至因特网"。点配置,在弹出的对话框中只填入Socks主机代理地址(localhost,端口8000):
点确定。试着访问一些页面,你应该已经位于加州了 :)。firefox还有一些方便设置代理的插件,可以去找一下。
Featured Post
Windows和Ubuntu双系统完全独立的安装方法
http://www.ubuntuhome.com/windows-and-ubuntu-install.html | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...
-
http://www.williamlong.info/archives/3125.html -月光博客 互联网精准广告定向技术,指的是依托于搜索引擎庞大的网民行为数据库,对网民几乎所有上网行为进行个性化的深度分析,按广告主需求锁定目标受众,进行一对一传播,提供多通道投放,按照效...
-
VOA News A wine-tasting near Beijing, China Finally, a listener in Taiwan wrote to ask why his face turns red when he drinks alcohol. Th...
-
Companion Website for: Word Frequencies in Written and Spoken English Word Frequencies in Written and Spoken English: based on the British N...
