IE中JS错误(KB927917)的解决办法

博客用了半静态化后,使用了月光的js版postviews,但是ie会提示KB927917的错误,计数器有时候也不会正常工作。查了一些资料,终于解决了。

页面错误提示:Unable to modify the parent container element before the child element is closed (KB927917)

错误描述:“用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media CenterPC 6.0; InfoPath.2),时间戳: Tue, 12 May 2009 13:49:16 UTC消息: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)行: 0字符: 0代码: 0。”

继续阅读“IE中JS错误(KB927917)的解决办法”

国外虚拟主机空间的过度销售

出于某些方面的考虑,我很早就购买过一些国外的虚拟主机,最近两年我一直都在续费DreamHost的虚拟主机,现在我很遗憾地发现,我这对这家著名虚拟主机服务商的忍耐力已经快接近极限了。

对于DreamHost所遇到的种种问题,我觉得原因归根结底就是一个,那就是DreamHost非常夸张的过度销售(overselling)策略。购买一个DreamHost的虚拟主机,可以绑定无限多的域名,拥有500GB空间,每月流量5000GB,这么夸张的配置真的只要9.95美元吗,我们真能用得到这么多资源吗?

继续阅读“国外虚拟主机空间的过度销售”

去除WordPress header 的 link 标签 rel 属性

WordPress 在 2.8 版本之后,增加了几个新的 link 标签 rel 属性,例如:

<link rel="index" title="Sino Blog" href="http://www.sinoblog.org" />
<link rel="start" title="Hello World" href="http://www.sinoblog.org/2007/09/hello-world.html" />
<link rel="prev" title="QQ邮箱支持域名邮箱个性化邮件服务" href="http://www.sinoblog.org/2009/09/qq-domainmail.html" />

如果要去掉 WordPress 博客 header 部分的这些 rel 属性,可以通过修改主题支持函数(functions.php)来实现,规则是:

remove_action( $tag, $function_to_add, $priority, $accepted_args );

例如,要去掉下面的这些 link 标签:

<link rel="alternate" type="application/rss+xml" title="WP Engineer RSS Feed" href="http://www.aliyoga.com/yujia/feed/" />
<link rel="alternate" type="application/atom+xml" title="WP Engineer Atom Feed" href="http://www.aliyoga.com/yujia/feed/atom/" />
<link rel="pingback" href="http://www.aliyoga.com/yujia/xmlrpc.php" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.aliyoga.com/xmlrpc.php?rsd" />
<link rel="index" title="WP Engineer" href="http://www.aliyoga.com" />
<link rel="start" title="Use WordPress 2.7 Offline" href="http://www.aliyoga.com/shop/" />
<link rel="prev" title="Recents Drafts All Authors" href="http://www.aliyoga.com/bbs/" />

分别对应的 remove_action 代码是:

remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
remove_action( 'wp_head', 'index_rel_link' ); // index link
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version

在一个老外的博客看到的,记录一下
本文来源于Sino Blog http://www.sinoblog.org , 原文地址: http://www.sinoblog.org/2009/09/cleanup-wordpress-header-link-rel.html

ReactOS–windows的替代品

ReactOS是真正的windows掘墓人,linux显然在桌面操作系统领域力不从心,如果ReactOS计划能够实现100%兼容,相信会有更多人使用,有一天我们再也不用使用盗版windows而抬不起头了。下面是官方的介绍以及应用程序截图,注意那张Unreal Tournament截图,这意味着大量pc平台的游戏将在这里重生,这绝对不是linux可以给你的。 继续阅读“ReactOS–windows的替代品”

Ubuntu常用软件,配置和命令

1,修改你的源,并升级到最新的系统,这个最最基本的,必做(如果感觉很麻烦,就用优化软件来做):

sudo gedit /etc/apt/sources.list

在编辑器里,删除所有东西,并在加上下面的行,建议安装Ubuntu Tweak来修改就不用使用命令了: 最新的163做的源,9.04的

deb http://mirrors.163.com/ubuntu karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu karmic-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu karmic-backports main restricted universe multiverse 继续阅读“Ubuntu常用软件,配置和命令”

MSN机器人Win32.IRCBot病毒超详细分析

中文名称: MSN机器人变种

病毒类型: 后门类

文件MD5: C06D070C232BC6AC6346CBD282EF73AE

文件长度: 40,960 字节

感染系统: Windows9X以上版本

开发工具: Microsoft Visual C++

加壳类型: Kkrunchy 0.23 (Arabic)

病毒描述:

该病毒运行后,衍生病毒副本到系统目录下,添加注册表自动运行项以跟随系统引导病毒体。病毒体判断本地是否有MSN 窗体存在,如无则连接IRC服务器,接收指令下载病毒体到本机运行,如有则向所有联系人发送病毒副本*.rar。由于病毒体具有执行IRC指令的功能,受感染用户可被控制下载任意程序到本机执行,极具危害性与传播性。

继续阅读“MSN机器人Win32.IRCBot病毒超详细分析”