Kros Dai’ Blog No excuse, no panic

解决了 MovableType 500,死而瞑目了

  Blog 从2003年开始倒腾,断断续续到现在,对 MT 是又爱又恨。爱么自不消说,恨,竟然是用几乎要被淘汰的,万分晦涩难懂的 Perl 写的……搞得麻烦不断。期间 500 错误就折腾了我 N 回,包括前段时间不得不把 Gfans convert 到 WordPress。如果你的 MT 符合如下病状,建议看一下……

  • 所有 .cgi 文件权限正确——0755
  • 所有 .cgi 文件都是 ASCII 方式 FTP 上传的,或是通过 CVS/SVN 更新下来的,不存在二进制文件格式问题
  • Perl 的 DBI 和 DBD::mysql 是最新版本的(官方解释
  • 服务器有空余内存
  • 每次出现 500,Apache 的 error_log 会出现1条 Premature end of script headers: mt.cgi,注意,只有这一条,而不是伴随其他错误的
  • 500 经常出现在后台首页、重建页面(包括发评论和收到 Trackback)时
  • 重建页面时 500,但是页面实际上可能已经生成好了
  • 关闭所有插件、后台任务,均无效
  • 用相同过程在相同服务器上再建一个新的 Blog 问题就没了

  好了,揭晓解决办法——尝试调大 Apache 的 Timeout 值,20秒左右吧,对于文章、评论多的 Blog。不明白的是,Apache 超时就会中断 Perl 脚本?Perl 肯定是作为 cgi 模式执行的,不像 php,是 Apache 的模块(不过现在又流行用 cgi 模式执行 php 了),Apache 结束后会 kill 掉 perl 进程?

  另外,做 3 则广告:

  1. DreamHost:国外老牌虚拟主机商,不过我还是刚知道,竟然可以自己 ssh 上去编译 php 的(Apache 用的是 suexec+fastcgi 模式),另外 perl、ruby、rails 很齐全,反正都能自己编的,我一上来,就把 svn/php 重编了下 -_-。初始 200G 容量,2TB/月流量,注册后每周增加 1GB 容量,16GB/月流量。注册时打上销售代码 9999,就是 $99 的折扣,算下来第一年只要 $19……陈少举同学这种应用的,就可以考虑配合 NameCheap把域名也转出去,很不错地
  2. FoxPlus:国内唯一一个 Firefox 全平台 mod 版,性能不错。关键方便、绿色,所有配置都在程序文件夹里,U盘里带着走。
  3. 本人望眼欲穿的 eMule 内网穿透版本终于成形了,发个内测版本出来:eMule-VeryCD.SpeedUp.beta.1219-b.rar。请看到的朋友别到处贴,这个还是一个小范围的测试版本,看看具体效果如何。测试时别忘了把自己弄成 LowID,看看能不能传给其他 LowID,注意选项里把自己昵称改掉,方便其他人知道是谁。具体测试办法写在 RAR 里了。任何问题,可以邮件发到 emule [AT] verycd.com,主题注明“内网穿透版本测试报告”

山雨欲来风满楼

时间大致的,不一定准确

转发Dash的一个公告

  母亲三年前得乳腺癌,属中晚期。经过化疗和手术后在家休养。

  但是最近一次检查发现癌细胞已扩散,肝脏,肺,骨骼等部位的监测均不正常,情况极不乐观。

  母亲在得知检测结果后往上海肿瘤医院接受治疗,该院虽在肿瘤治疗方面最为权威,但医院本身的制度环境等都颇为混乱,医生也非常麻木,似乎对我母亲这类病人不愿进行积极治疗,开出的化疗药方也较为简单。

  母亲辛苦养育我二十余载,现在本应坐享天伦之乐,但癌症却在一步步地吞噬她的生命。

  纵然治愈的希望有多渺茫,生命的代价有多昂贵,我都愿意帮助母亲积极地进行治疗。肿瘤医院医生对医疗的态度,显然不能满足我的要求。而现在又所谓的“神医”“仙药”泛滥,绝大多数都为骗子,作为患者实在无从选择。

  所以我只能在这里向大家寻求帮助。有没有什么好的医生,或好的医院推荐(中西医皆可)。

  在此向大家谢过。

  因为他妈妈每天都会看他 Blog,所以 Dash 没有在自己的 Blog 上发。看到的朋友帮忙留心一下吧。

Mac 版的 iTunes 7

iTunes 7

  面对 Jobs,我还能期待什么,嗯,就是下面这些玩具了——

  还有俄,不知道酷瑞II的 Macbook 是不是还那么烫,不烫就完美了……

非计算机专业的小作业

  某同学让我枪手一下,帮忙做作业,拿到题目吓坏我了,竟然是金融专业的作业。国内大学和人家就是差距啊,这种题目国内估计没几个计算机系的教授搞得明白怎么回事的。

Task

  Imagine you are a web site developer. You have been commissioned to develop a web page for an academic conference. You will be required to use the markup language XML in conjunction with the XML Schema and XML Style Language.

  The web page must contain information about conference venue, organising committee, conference themes/tracks and the conference program. More details are given below.

Detailed Requirements

  All the content you need to complete this assignment can be found an the web page of the 13th European conference on Information System 2005: http://www.ecis2005.de/

Conference Details
  • The name of the conference is the 13th European Conference on Information Systems(2005).
  • The conference will be held in Regensburg, Germany and was organised by the Institute for Management of Information Systems at the University of Regensburg.
  • The address of the conference can include certain elements (street name, building name etc) which you are free to name.
  • The venue of the conference can be enhanced with the inclusion of a map.
Organising Committee
  • The organising committee include representatives from various institution and is responsible for different sections of the conference.
  • Assume that the representatives are the conference chair, program chaire, research papers chair, technology chair, coordinator, student volunteer organiser.
Conference Themes/Tracks
  • The conference has 18 different tracks. Please select only 4 different tracks for your assignment.
  • Each track has a track name, a short description of it, and a list of suggested topics.
  • Each track is moderated by at least one track chair (name and affiliated institution) key words of the paper.
Conference Program
  • The conference program contains information regarding the presentations of your selected papers, the name of the authors, the location and time.
  • Each paper (with title name) is written by at least one author.
  • All papers are to be presented by at least one of the authors during the conference (This information might not be provided by the web page and you must decide who could be the presenter).
  • Provide the information about the track chairs (name and affiliated institution)

Presentation of the XML document

  The presentation should be realized with XSL and in an Internet browser. You have to develop FIVE XSL files delivering information on

  • Conference venue (venue.xsl)
  • Organising committee (committee.xsl)
  • Conference Tracks (tracks.xsl)
  • Conference Program (program.xsl)
  • Merge file (merge.xsl) - The merge file is a file which enables you to link all the stylesheets together.

  Please ensure that the documents are well-commented in order to increase the readability of the assignment. Please also ensure that the final webpage is well-presented. You can make use of some HTML to enhance the appearance of your webpage.

Delivery

  The delivery of the assignment has to be 6 components (single files):

1. XML file name: ecis_conference.xml
2. DTD file name: ecis_dtd.dtd
3. XML Schema file name: ecis_schema.xsd
4. XSL file 1 name: venue.xsl
5. XSL file 2 name: committee.xsl
6. XSL file 3 name: tracks.xsl
7. XSL file 4 name: program.xsl
8. XSL file 5 name: merge.xsl

  有点看不懂,这个题目意思好像是把所有信息放到一个 xml 文件里,然后不同 xsl 文件从这个 xml 中读取数据并表现出来。xsl 有读取 xml 文件的语法嘛?我只知道不同内容、相同格式的 xml 文件调用一个 xsl 文件来表现自己的数据,可以反过来?好像除非在另一个页面里用 JS 载入不通的 xsl,通过 JS 打印出来才行吧……征集答案 -_-

This site is licensed under a Creative Commons License .