作为Google的忠实用户,从07年开始注册Gmail账户一直使用至今,大部分搜索也是必用Google。但由于众所周知的原因,Google的服务在国内访问并不是很方便,各种翻墙工具、Google Hosts方法等等都会不定期的被封锁,最后只好自己动手,在自己的VPS服务器上搭建专用PPTP VPN,没事的时候就挂上VPN,终于不用再担心Google被封了。 先介绍背景: 服务器运行环境: Ubuntu 14.04 LTS,LAMP,使用Wordpress搭建个人网站。 需求:架设PPTP VPN科学上网浏览Google、Facebook、Twit

speed up website

博客架设在美国VPS服务器上,图的是服务稳定免备案,但缺点也是显而易见的,先不论GFW的风险,每次的访问请求都要走太平洋海底光缆一个来回,再加上国际出口带宽的限制,网站速度自然很难与国内服务器相比。 对于个人博客,预算有限,不可能花大价钱提升服务器硬件,也不觉得有必要购买CDN服务,那么只有榨干现有服务器资源、提升效率。如果你认为本站访问速度还不错也有折腾的兴趣,建议你继续往下阅读。 服务器端的优化 启用PHP自

其实不怎么满意现在文内广告的位置,本来是想通过判断WP中的more标签位置插入广告的,奈何自己总是很懒,加上毕业设计的任务压在头上,也就作罢了,忽然想起WP的短代码功能似乎可以实现此功能,于是翻了翻WordPress Popular Posts的代码,找出了此段代码,这样就可以轻松在博客文章或者WordPress侧栏中任意位置添加Adsense广告了。 代码很简单,把以下的代码加入到主题的functions.php中: function showad() { return ‘<div class=”advertise”> //这里放你的

WordPress have different user roles. These roles let administrator manage blog contributors works better. Author role in WordPress can not see much information from the dashboard. Sometimes, we may want to see what we have published. At that time, we can uses the following code to let Author see their own posts list.

When we write article, we often uses some external links to extent our content. These links will help other websites build search engine weightiness. If you don’t want to help your competitors, you should add “nofollow” to these links. One idea is to add rel=”nofollow” on each links manually. But, it will be a tough task. […]

PHP may be king of the web, but that doesn’t mean there isn’t room for some stellar ASP .NET CMSes. As most website uses PHP, many host provider only focus on Linux hosting and gave up ASP business. This makes a good opportunity for those who want to start web hosting business. How to make money with […]

PHP has take over most of the market in the web. However, for some reasons, some company don’t want to turn their ASP website to PHP. For these people, I’d like to introduce 3 budget ASP content management systems. These CMSes can give you the functionality and the support your need to get the things done.

As the ASP is very easy to use, many companies choose ASP to develop their IT solution on Windows 2000 Server + ASP + MSSQL. However, this idea also have its disadvantages.  And when your are going to transfer to linux, you will find big problems. There are two ways to transfer ASP to Linux. 1. […]

By create a community, we are able to develop open source software faster. However, we need a powerful tools to help us manage the development process. A good solution should let all the members edit the code at the same time but not affect others. Here, I’d like to list 3 develop solutions.