• 2004年10月20日

    Avoid Must Thinking

    Tag:Literature

    Avoid "Must" Thinking. Let go of the notion that you must do something in a certain way -for example, "I must get a great score on a test, or else." This thought pattern only adds to the stress you'll feel. Evaluate your situation coolly and analytically, and not as a "life-or- death situation.

    避免"必须"的想法。去掉你的这种观念,即你必须以某种方式做某件事情。比如:"我必须考试得高分等。"这种想法只能增加你的紧张程度。冷静地评估你的状况,作出分析,不要把它当作一件性命攸关的事情。

  • 2004年10月18日

    拼音加加重出江湖?

    Tag:soft

    一句话:失望大于希望。先不说丑陋的图标,单是那份可笑的声明(http://www.6h.com.cn/pyjj.htm)就让人失望了。在网络如此发达的今天,一个小于10M的软件的下载,居然会让服务器挺不住?不知道那是什么主机来的。还有死不悔改的修改IE首页,在今天是显得更加的不合时宜了。6h的网站看了也心烦。

    又,终于“好不容易”下载了2004.3.01版,想看看有什么新功能。结果,在我的系统里死活打不出拼音。ft!

  •     这种集成方式比起以mod_jk2集成的方式简单得多,也比较稳定;缺点是全部页面都交给tomcat处理了,性能会差。

        以下文字摘自tomcat的文档,以备忘,方便查找。

    1. Configure your copy of Apache so that it includes the mod_proxy module. If you are building from source, the easiest way to do this is to include the --enable-module=proxy directive on the ./configure command line.
    2. If not already added for you, make sure that you are loading the mod_proxy module at Apache startup time, by using the following directives in your httpd.conf file:
      LoadModule proxy_module  {path-to-modules}/mod_proxy.so
      AddModule  mod_proxy.c
      
    3. Include two directives in your httpd.conf file for each web application that you wish to forward to Tomcat 5. For example, to forward an application at context path /myapp:
      ProxyPass         /myapp  http://localhost:8081/myapp
      ProxyPassReverse  /myapp  http://localhost:8081/myapp
      
      which tells Apache to forward URLs of the form http://localhost/myapp/* to the Tomcat 5 connector listening on port 8081.
    4. Configure your copy of Tomcat 5 to include a special <Connector> element, with appropriate proxy settings, for example:
      <Connector port="8081" ...
                    proxyName="www.mycompany.com"
                    proxyPort="80"/>
      
      which will cause servlets inside this web application to think that all proxied requests were directed to www.mycompany.com on port 80.
    5. It is legal to omit the proxyName attribute from the <Connector> element. If you do so, the value returned by request.getServerName() will by the host name on which Tomcat is running. In the example above, it would be localhost.
    6. If you also have a <Connector> listening on port 8080 (nested within the same Service element), the requests to either port will share the same set of virtual hosts and web applications.
    7. You might wish to use the IP filtering features of your operating system to restrict connections to port 8081 (in this example) to be allowed only from the server that is running Apache.
    8. Alternatively, you can set up a series of web applications that are only available via proxying, as follows:
      • Configure another <Service> that contains only a <Connector> for the proxy port.
      • Configure appropriate Engine, Host, and Context elements for the virtual hosts and web applications accessible via proxying.
      • Optionally, protect port 8081 with IP filters as described earlier.
    9. When requests are proxied by Apache, the web server will be recording these requests in its access log. Therefore, you will generally want to disable any access logging performed by Tomcat itself.
  • 今天下载Google Desktop Search,发觉还是蛮好用的,占用的资源也很少;不过可能由于是beta的原因,对中文的支持极差,还不能完全代替文件系统的搜索。

    其实之前也试用过jetbrains的omega。omega的功能要多一些,不过占用的资源极大,又经常indexing,就放弃了。不过那也是beta的时候,不知道现在正式版怎么样了。

  • 2004年10月13日

    申请了美味书签

    Tag:Default

    我的美味书签是:http://del.icio.us/fireshort

    以后新的有用的链接都将放在美味书签里面。