-
AIX Storage Learning 1
AIX 5.3中设置大文件支持
AIX系统安装之后,默认不允许单个文件大小超过2G,对于企业应用系统来说,这个限制一般是需要去除的。
首先,取消安全方面的限制,需要修改配置文件/etc/security/limits,可以针对所有用户在default段修改,或者在指定user段来修改具体user的限制。下面是一个示例。设置成-1,表示取消大小限制。 -
春节快乐! Happy Spring Festival!
庚寅年到了,恭祝大家新春快乐,万事如意!
The year of Tiger is coming. Wish you all have a good time in Spring Festival, and hope everyone have a wonderful year just like a Tiger!
虎虎生威 岁月耀光辉
牛年告退 今夜辞旧岁
财神到任 祈求唤风顺
展翅若鹏 蓄势待功成
厚德载物 飞腾展宏图
齐天洪福 家给人富足
新春相贺 祝愿您快乐
徵羽之操 莫逆八拜交
合家团圆 欢喜贺新年 -
Sun is to the end of life
As Euro Commission clears Oracle’s proposed acquisition of Sun Microsystems, this acquisition is much closer to the end. And I don’t think Russia and China will place obstacles for this deal, and it will finish in several days.
It is so pity and sad to hear that bad news. As a student, I took the most memorable internship at Sun and deeply fell into love with Sun’s unique curture. Without an open enviornment and a technology-first ideology, every engineer can obtain an immeasurable freedom around technology, so Sun created a lot of new technique. Java, Solaris, ZFS, DTrace, netBeans, JavaFX, Lesture, StorageTek, Cluster, VirtualBox, MySQL, UltraSPARC, xVM….. All of them is so great that can change our world. I worked for Sun for 8 months, but I cannot remember all of Sun’s mature product, because Sun owns such a lot of good projects or products.
In my family, I deployed a NAS (Network Attached Storage) Server under OpenSolaris. with ZFS supported, I can easily possess a good network server to store my personal and family data with a high reliability and a good performance. And I also deployed subversion, SAMP (Solaris+Apache+MySQL+PHP), Dynamic domain binding, remoting desktop and so on into my box, and I got a wonderful family system center with Sun’s product. I love it!
I will never forget that time working for Sun in my life. I love Sun forever.
Good luck to all the Sunners.
Sunset.
1982–2010 -
为cos-html-cache插件增加页面(Page)、标签(Tag)和分类(Category)的静态化功能
Wordpress的cos-html-cache插件为我们系统的静态化提供了非常好的解决方案,目前的版本是2.7.3。它可以将我们首页及文章(Post)进行静态化,使得访问速度大大提高,减少了服务器端的压力。不过对于页面、标签和分类,却似乎不太起作用,至少在我的服务器环境下(IIS7.0+FastCGI)是不行的。
为了能够实现它们,我分析了一下源代码,发现功能没有开启,但是可以实现的。具体修改方法及目的如下:
找到如下三行:
- if( substr_count($_SERVER[’REQUEST_URI’], ‘.htm’) || ( SCRIPT_URI == CosSiteHome) ){
- if( substr_count($_SERVER[’REQUEST_URI’], ‘../’)) $is_buffer = false;
- if( !substr_count($buffer, ‘<!–cos-html-cache-safe-tag–>’) ) return $buffer;
将他们分别做如下处理:
- 修改为:
if( strpos($_SERVER[’REQUEST_URI’], ‘page’)==1 || strpos($_SERVER[’REQUEST_URI’], ‘tag’)==1 || strpos($_SERVER[’REQUEST_URI’], ‘category’)==1 || substr_count($_SERVER[’REQUEST_URI’], ‘.htm’) || ( SCRIPT_URI == CosSiteHome) ){ - 在本行下增加:
if( substr_count($_SERVER[’REQUEST_URI’], ‘comment’)) $is_buffer = false; - 前面加上“//”注释掉本行
分别的原理及目的:
- 这个是在检测我们要静态化哪些文件,我为它增加了page、tag和category。当然,这个也和目录的模式有关,比如我的博客中,OpenSolaris的标签地址就是:http://www.priormind.com/tag/opensolaris。所以我就找到以tag开头的目录并静态化它们
- 防止评论内容被静态化
- 作者写了个函数,将singlepost(也就是单页页面)、首页都加上了一个安全标签(<!–cos-html-cache-safe-tag–>)。有这个标签的话将不被静态化。而我们需要它们静态化,所以就把这行注释掉好了
本人仅仅是尝试性修改,不保证其完全正确性。有兴趣的话大家可以试试看,呵呵。也欢迎一起交流。
-
How to configure Subversion in OpenSolaris
Recenly I am always thinking about how to manage personal programs, to save codes, to track changes, and to ensure their safety. I combine two things together and get a solution for my requirement, that is to use ZFS as persistent storage and use Subversion as a versioning controller, to ensure my codes can be safely saved and well managed. So today I will talk something about how to configure subversion in OpenSolaris.
-
转载:IIS FastCGI PHP 环境下搭建 WordPress
看到 Jerry Tao 在其博客上发表了一篇如何配置IIS7+FastCGI的文章,特转载过来学习。
Windows Server 2008 (SP2) + IIS 7
添加 Web 服务器角色,需要安装 CGI 扩展支持。
-
在OpenSolaris下动态绑定域名
在我前面的博客中,谈到了如何通过使用OpenSolaris和ZFS来实现家庭NAS(Network Attached Storage)网络数据中心的实现方法。对于我们很多人来说,仅仅在家中内部的局域网使用还是不够的,还希望家中的NAS能够发挥更大的作用,无论走到哪里,只要有网络,我们便能读取和存储数据到家中的NAS中。那样,我们最为重要数据就不必随身携带了。加上NAS系统的冗余性,我们就不必担心数据会丢失了。
今天想先来谈一谈实现这个想法其中比较关键的一步:绑定动态域名。在中国,我们的家用网络多半属于ADSL或小区宽带上网。这种上网的方式使得IP地址不是固定的,而是动态的。所以在家庭网络外部,我们是无法通过IP来识别并进入家用网络的。如果固定IP地址,花费的费用不菲,另外还要经历痛苦的备案过程。
其实现在已经有很好的解决方案了,比如花生壳Oray。前一阵子我也在使用oray来绑定自己的动态域名。特别是Oray和TP-LINK合作,在tp-link中已经内置了花生壳的程序,我们需要做的只是注册一个用户就好了。但花生壳不是很稳定,几次出现了断线无法连接的问题,而且一断就是好长时间(大于3小时)。这个让我无法忍受,所以我找到了另外的解决方法:使用ddclient和dyndns.com提供的动态域名解析服务。 Read the rest of this entry »
-
Goodbye 2009, Hello 2010
This is the end of year 2009, and it is really an amazing one in my life.
At the beginning of the year, I said goodbye to Sun, and all my life in Sun was so memorable that I cannot forget about it. Then I took a 7-day-travel around HongKong with my friends, and enjoyed the best time in the winter.
After coming back, I started my new internship at Microsoft. During those three months, I learnt a lot about MS’s culture, work environment, and the latest develop and test technique around .NET 3.5 framework. I also learned OpenXML document format, and it is really cool. But unfortunately, I am not a lucky dog to be a regular MSer. My manager told me they had no hc and all the interns may not get a position in the group. So I had to say goodbye to MS, and finished my internship in my campus stage.
Then I planned to go to Tibet for a wonderful travel with my best friend. With our great effort on the circuit, culture, lodging, document collecting and so on around Tibet, we really did a perfect preparation. Meanwhile, we did a lot of practice to enhance our body skills, and to ensure we can adapt the worst condition in the world about plateau problems.
We took the most significant time in this year in Tibet in July, and really got shocked from Tibet’s sight-seeing and its culture about Tibetan Buddhism. We saw the most beautiful sky and cloud in Tibet that we had ever seen before, and went far from the polluted cities. We felt so healthy, so happy in those 7 days, and both of us were so enjoying ourselves.
After coming back from Tibet, I started to prepare my final thesis and the project for my thesis. I did a lot investigation around dental clinics, made several discussions with doctors, nurses and their leaders. Then I started to design the architecture, then implemented it. I am happy it runs well on their clinics and it is useful and beneficial for their workflow.
Then I started to write down my process of software development as the content of my final thesis. And thanks for my tutor to give me guides on how to write a good postgraduation thesis. With months’ exertion, I successfully finished my thesis and got my master’s degree, and will graduate from PKU in the coming month.
Then I started my job hunting career, which is the toughest phrase in my life. There are so many paper tests, interviews or discussions through these months, with striving, sadness, tension, happiness and hope. It is fortunate that I got 3 offers at the end of the year, and 2 of them I feel satisfied. In 2010, I will become an employee of a great company, and I am looking forward to putting my wit and my energy to contribute to my company! I see a brighter future in front of myself, and I will keep on going to reach the summit of my life.
Hello 2010!
-
This Is It
Get the Flash Player to see this content.
Earth Song -
A Morse Code Exchanger
Paul’s Online Services
Dynamic Tag Cloud
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Recent Posts
- AIX Storage Learning 1
- 春节快乐! Happy Spring Festival!
- Sun is to the end of life
- 为cos-html-cache插件增加页面(Page)、标签(Tag)和分类(Category)的静态化功能
- How to configure Subversion in OpenSolaris
- 转载:IIS FastCGI PHP 环境下搭建 WordPress
- 在OpenSolaris下动态绑定域名
- Goodbye 2009, Hello 2010
- This Is It
- A Morse Code Exchanger
Recent Comments
- 新视界 (New Vision) » 在OpenSolaris下动态绑定域名 on 使用ZFS打造家庭廉价数据中心
- paul on Wordpress数据库转移网址变换的方法
- 知识 on Wordpress数据库转移网址变换的方法
- WP Super Cache V0.98 and IIS7 « Anders Heie on Speed up your WordPress Blog on IIS 7 by using WP-Super-Cache
- 博沈 on This Is It
- paul on 使用ZFS打造家庭廉价数据中心
- Anonymous on OpenSolaris 上的 Samba 服务器
- Anonymous on 使用ZFS打造家庭廉价数据中心
- Anonymous on OpenSolaris 上的 Samba 服务器
- Paul on 十年前和十年后的我们