• AIX Storage Learning 1

    Date: 2010.03.04 | Category: Operating System | Response: 0

    AIX 5.3中设置大文件支持

    AIX系统安装之后,默认不允许单个文件大小超过2G,对于企业应用系统来说,这个限制一般是需要去除的。
    首先,取消安全方面的限制,需要修改配置文件/etc/security/limits,可以针对所有用户在default段修改,或者在指定user段来修改具体user的限制。下面是一个示例。设置成-1,表示取消大小限制。

    Read the rest of this entry »

    • Share/Bookmark
  • 春节快乐! Happy Spring Festival!

    Date: 2010.02.13 | Category: Entertainment, In My Opinion | Response: 0

    庚寅年到了,恭祝大家新春快乐,万事如意!

    The year of Tiger is coming. Wish you all have a good time in Spring Festival, and hope ever­yone have a won­der­ful year just like a Tiger! :-)

     

    虎生威 岁月耀光辉
    告退 今夜辞旧岁
    财神任 祈求唤风顺
    展翅若 蓄势待功成
    厚德载物 腾展宏图
    齐天洪福 家人富足
    新春相贺 祝愿快乐
    徵羽之操 莫逆八
    合家团圆 欢喜贺新

    2010虎年开门红福虎仔

    • Share/Bookmark
  • Sun is to the end of life

    Date: 2010.01.22 | Category: Sun | Response: 0

    As Euro Commi­ssion clears Oracle’s pro­po­sed acqui­si­tion of Sun Mic­ro­systems, this acqui­si­tion is much clo­ser to the end. And I don’t think Russia and China will place obsta­cles for this deal, and it will finish in seve­ral days.

    It is so pity and sad to hear that bad news. As a stu­dent, I took the most memo­ra­ble inter­n­ship at Sun and dee­ply fell into love with Sun’s uni­que cur­ture. Without an open envio­r­n­ment and a technology-first ideo­logy, every engi­neer can obtain an immea­su­ra­ble free­dom around tech­no­logy, so Sun crea­ted a lot of new tech­ni­que. Java, Sola­ris, ZFS, DTrace, netBeans, JavaFX, Lesture, Sto­ra­ge­Tek, Clu­ster, Vir­tua­lBox, MySQL, Ult­ra­SPARC, xVM….. All of them is so great that can change our world. I wor­ked for Sun for 8 mon­ths, but I can­not reme­mber all of Sun’s mature pro­duct, because Sun owns such a lot of good pro­je­cts or products.

    In my family, I deplo­yed a NAS (Network Atta­ched Sto­rage) Server under Open­So­la­ris. with ZFS suppo­r­ted, I can easily possess a good network server to store my per­so­nal and family data with a high relia­bi­lity and a good per­fo­r­mance. And I also deplo­yed subver­sion, SAMP (Solaris+Apache+MySQL+PHP), Dyna­mic domain bin­ding, remo­ting desktop and so on into my box, and I got a won­der­ful family system cen­ter with Sun’s pro­duct. I love it!

    I will never for­get that time wor­king for Sun in my life. I love Sun forever.

    Good luck to all the Sunners.

    image

     

    Sun­set.
    1982–2010

    • Share/Bookmark
  • 为cos-html-cache插件增加页面(Page)、标签(Tag)和分类(Category)的静态化功能

    Date: 2010.01.16 | Category: In My Opinion, WordPress | Response: 0

    Wordpress的cos-html-cache插件为我们系统的静态化提供了非常好的解决方案,目前的版本是2.7.3。它可以将我们首页及文章(Post)进行静态化,使得访问速度大大提高,减少了服务器端的压力。不过对于页面、标签和分类,却似乎不太起作用,至少在我的服务器环境下(IIS7.0+FastCGI)是不行的。

    为了能够实现它们,我分析了一下源代码,发现功能没有开启,但是可以实现的。具体修改方法及目的如下:

    找到如下三行:

    1. if( substr_count($_SERVER[’REQUEST_URI’], ‘.htm’) || ( SCRIPT_URI == CosSiteHome) ){
    2. if(  substr_count($_SERVER[’REQUEST_URI’], ‘../’))  $is_buffer = false;
    3. if( !substr_count($buffer, ‘<!–cos-html-cache-safe-tag–>’) ) return  $buffer;

    将他们分别做如下处理:

    1. 修改为:
      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) ){
    2. 在本行下增加:
      if(  substr_count($_SERVER[’REQUEST_URI’], ‘comment’))  $is_buffer = false;
    3. 前面加上“//”注释掉本行

    分别的原理及目的:

    1. 这个是在检测我们要静态化哪些文件,我为它增加了page、tag和category。当然,这个也和目录的模式有关,比如我的博客中,OpenSolaris的标签地址就是:http://www.priormind.com/tag/opensolaris。所以我就找到以tag开头的目录并静态化它们
    2. 防止评论内容被静态化
    3. 作者写了个函数,将singlepost(也就是单页页面)、首页都加上了一个安全标签(<!–cos-html-cache-safe-tag–>)。有这个标签的话将不被静态化。而我们需要它们静态化,所以就把这行注释掉好了

    本人仅仅是尝试性修改,不保证其完全正确性。有兴趣的话大家可以试试看,呵呵。也欢迎一起交流。

    • Share/Bookmark
  • How to configure Subversion in OpenSolaris

    Date: 2010.01.13 | Category: Open Source | Response: 0

    Recenly I am always thin­king about how to manage per­so­nal pro­g­rams, to save codes, to track chan­ges, and to ensure their safety. I combine two things toge­ther and get a solu­tion for my requi­re­ment, that is to use ZFS as per­si­stent sto­rage and use Subver­sion as a ver­sio­ning con­t­ro­ller, to ensure my codes can be safely saved and well mana­ged. So today I will talk some­thing about how to con­fi­gure subver­sion in OpenSolaris.

    Read the rest of this entry »

    • Share/Bookmark
  • 转载:IIS FastCGI PHP 环境下搭建 WordPress

    Date: 2010.01.12 | Category: Learn from Others, Web Back-end, WordPress | Response: 0

    看到 Jerry Tao 在其博客上发表了一篇如何配置IIS7+FastCGI的文章,特转载过来学习。

    Win­dows Server 2008 (SP2) + IIS 7
    添加 Web 服务器角色,需要安装 CGI 扩展支持。

    image

    Read the rest of this entry »

    • Share/Bookmark
  • 在OpenSolaris下动态绑定域名

    Date: 2010.01.08 | Category: In My Opinion, Open Source | Response: 0

    在我前面的博客中,谈到了如何通过使用OpenSolaris和ZFS来实现家庭NAS(Network Atta­ched Sto­rage)网络数据中心的实现方法。对于我们很多人来说,仅仅在家中内部的局域网使用还是不够的,还希望家中的NAS能够发挥更大的作用,无论走到哪里,只要有网络,我们便能读取和存储数据到家中的NAS中。那样,我们最为重要数据就不必随身携带了。加上NAS系统的冗余性,我们就不必担心数据会丢失了。

    今天想先来谈一谈实现这个想法其中比较关键的一步:绑定动态域名。在中国,我们的家用网络多半属于ADSL或小区宽带上网。这种上网的方式使得IP地址不是固定的,而是动态的。所以在家庭网络外部,我们是无法通过IP来识别并进入家用网络的。如果固定IP地址,花费的费用不菲,另外还要经历痛苦的备案过程。

    其实现在已经有很好的解决方案了,比如花生壳Oray。前一阵子我也在使用oray来绑定自己的动态域名。特别是Oray和TP-LINK合作,在tp-link中已经内置了花生壳的程序,我们需要做的只是注册一个用户就好了。但花生壳不是很稳定,几次出现了断线无法连接的问题,而且一断就是好长时间(大于3小时)。这个让我无法忍受,所以我找到了另外的解决方法:使用ddclient和dyndns.com提供的动态域名解析服务。 Read the rest of this entry »

    • Share/Bookmark
  • Goodbye 2009, Hello 2010

    Date: 2009.12.31 | Category: In My Opinion | Response: 0

    This is the end of year 2009, and it is rea­lly an ama­zing one in my life.

    At the begin­ning of the year, I said goo­dbye to Sun, and all my life in Sun was so memo­ra­ble that I can­not for­get about it. Then I took a 7-day-travel around Hong­Kong with my friends, and enjo­yed the best time in the winter.

    After coming back, I sta­r­ted my new inter­n­ship at Mic­ro­soft. During those three mon­ths, I lea­rnt a lot about MS’s culture, work envi­ron­ment, and the latest deve­lop and test tech­ni­que around .NET 3.5 fra­me­work. I also lea­r­ned Open­XML docu­ment for­mat, and it is rea­lly cool. But unfo­r­tu­na­tely, I am not a lucky dog to be a regu­lar MSer. My mana­ger told me they had no hc and all the interns may not get a posi­tion in the group. So I had to say goo­dbye to MS, and fini­shed my inter­n­ship in my campus stage.

    Then I plan­ned to go to Tibet for a won­der­ful travel with my best friend. With our great effort on the cir­cuit, culture, lodging, docu­ment colle­cting and so on around Tibet, we rea­lly did a per­fect pre­pa­ra­tion. Mean­while, we did a lot of pra­ctice to enhance our body ski­lls, and to ensure we can adapt the worst con­di­tion in the world about pla­teau problems.

    We took the most sig­ni­fi­cant time in this year in Tibet in July, and rea­lly got sho­cked from Tibet’s sight-seeing and its culture about Tibe­tan Buddhism. We saw the most beau­ti­ful sky and cloud in Tibet that we had ever seen before, and went far from the pollu­ted cities. We felt so hea­lthy, so happy in those 7 days, and both of us were so enjo­ying ourselves.

    After coming back from Tibet, I sta­r­ted to pre­pare my final the­sis and the pro­ject for my the­sis. I did a lot inve­sti­ga­tion around den­tal cli­nics, made seve­ral discu­ssions with doctors, nur­ses and their lea­ders. Then I sta­r­ted to design the archi­te­cture, then imple­men­ted it. I am happy it runs well on their cli­nics and it is use­ful and bene­fi­cial for their workflow.

    Then I sta­r­ted to write down my pro­cess of software deve­lo­pment as the con­tent of my final the­sis. And thanks for my tutor to give me gui­des on how to write a good postg­ra­dua­tion the­sis. With mon­ths’ exer­tion, I succe­ssfu­lly fini­shed my the­sis and got my master’s deg­ree, and will gra­duate from PKU in the coming month.

    Then I sta­r­ted my job hun­ting career, which is the tou­g­hest phrase in my life. There are so many paper tests, interviews or discu­ssions through these mon­ths, with striving, sad­ness, ten­sion, happi­ness and hope. It is for­tu­nate that I got 3 offers at the end of the year, and 2 of them I feel sati­sfied. In 2010, I will become an emplo­yee of a great company, and I am loo­king for­ward to putting my wit and my energy to con­t­ri­bute to my company! I see a bri­g­hter future in front of myself, and I will keep on going to reach the summit of my life. :-)

    Hello 2010!

    • Share/Bookmark
  • This Is It

    Date: 2009.11.16 | Category: Entertainment, In My Opinion | Response: 1

    image

    Get the Flash Pla­yer to see this con­tent.

    Earth Song

    Read the rest of this entry »

    • Share/Bookmark
  • A Morse Code Exchanger

    Date: 2009.11.08 | Category: Software | Response: 0

    • Share/Bookmark
Page 1 of 1712345...Last »

Paul’s Online Services

Dynamic Tag Cloud

Recent Posts

Recent Comments

Tags

2008.11.Trip-of-GuangXi ASP.net C++ China Chrome css dotNet FCGuoAn Firefox Football gmail IBM IE IIS IT Association Joke Microsoft music mysql NLP Nokia ntfs NumPy OpenSolaris open source Open Team php pidgin PKUSS Python Python Challenge qq Samba SciPy Learning shell solaris SQL SUN Thunderbird Travel web host Win 7 WordPress X11 zfs