2010年二月
« 十二    
1234567
891011121314
15161718192021
22232425262728

GFC

GFC留言

51la

Simple Tags在wordpress 2.9 下无法工作的解决办法

Simple Tags can’t work with this WordPress version !
今天升级到wordpress2.9之后,wp-admin里面就显示这条消息,一般来说,这种提示都是由于版本检测导致的。很多时候,由于插件发布时。不知道以后新版的版本号会升级到多少,检测部分在升级后不能正常工作。但是真正的功能代码可能并不受影响。
尝试一下:
插件-编辑-选择simple tags,然后找到下面的代码
strpos($wp_version, ‘2.7′) !== false || strpos($wp_version, ‘2.8′) !== false
替换成
strpos($wp_version, ‘2.7′) !== false || strpos($wp_version, ‘2.8′) !== false|| strpos($wp_version, ‘2.9′) !== false
于是就OK了

【转载】三条关于Google Chrome Frame的使用技巧

Chrome Frame,谷歌网站上说Google Chrome Frame 是Google推出的一个供IE浏览器使用的插件,可以将IE由一个 Trident 内核的浏览器变成一个 Chrome 浏览器。Chrome Frame 会把最新版的Chrome Webkit 内核和JavaScript 引擎注入到IE中。功能虽然强大但是如何使用了在网上找了点关于Google Chrome Frame使用的资料:

1、对于网站所有者而言,提高自己网站的访问速度无疑是获得访问者好感的第一步,那么对于开发者来说,只需要在页面代码的加入

即可让安装了Frame的IE启用Google Chrome Frame来浏览自己的网站。

2、对于浏览者来说获得飞快的上网速度无疑是最后不过的了,使用Google Chrome Frame的前提是在网址前面加上“cf”,如:cf:http://www.google.com,每次都要输入显得很麻烦,困兽介绍一种方法,可以让IE浏览器在浏览网页时自动启用Google Chrome Frame功能,方法如下:

首先给 IE 浏览器下载安装 Google Chrome Frame 插件,然后下载并双击运行此文件 chrome-frame.reg 即可。

即修改有关ChromeFrame注册表的键值为:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Google\ChromeFrame\OptInUrls]

“*”

说明:改成“*”是全部启用,如果只想在访问指定的网站启用则只要加上指定的地址就可以了,如:

*google.com*
*yahoo.com/mail*

去除自动启用只要将HKEY_CURRENT_USER\Software\Google\ChromeFrame\OptInUrls右侧的“*”删除即可。

3、另外发现一个小东西:在大陆访问goog.com会直接被重定向跳转到google.cn这样有些Google提供的功能无法直接使用,现在只要安装了Google Chrome Frame,那么输入cf:http://google.com就会定向到google.com,呵呵

RFC:网络的十二条真理

RFC1925 – The Twelve Networking Truths

Network Working Group                                  R. Callon, Editor
Request for Comments: 1925                                          IOOF
Category: Informational                                     1 April 1996

                      The Twelve Networking Truths

Status of this Memo
本备忘录的状态

   This memo provides information for the Internet community.  This memo does not specify an Internet standard of any kind.  Distribution of this memo is unlimited.
   本备忘录提供了Internet社区的信息,它没有规定任何一种Internet标准,对本备忘录分发不受限制。

Abstract
摘要

   This memo documents the fundamental truths of networking for the Internet community. This memo does not specify a standard, except in the sense that all standards must implicitly follow the fundamental truths.
   本备忘录包含了互联网社区有关网络的基本真理,它没有指定任何标准,但任何标准都必须遵循这些基本真理

Acknowledgements
致谢

   The truths described in this memo result from extensive study over an extended period of time by many people, some of whom did not intend to contribute to this work. The editor merely has collected these truths, and would like to thank the networking community for originally illuminating these truths.
   本备忘录中的真理是许多人长期大量研究的结晶,其中的一些人无意间对此做出了贡献。编辑只是收集了这些真理,这里要对这些真理进行了原始阐述的网络社区表示感谢。
  

1. Introduction
   介绍

   This Request for Comments (RFC) provides information about the fundamental truths underlying all networking. These truths apply to networking in general, and are not limited to TCP/IP, the Internet, or any other subset of the networking community.
   该请求评注(RFC)提供了所有网络底层的基本真理。这些真理适用于所有网络,而不仅仅是TCP/IP、Internet或任何网络的子集。
  

2. The Fundamental Truths
   基本的真理

   (1)  It Has To Work.
        网络必须能够运行.

   (2)  No matter how hard you push and no matter what the priority, you can’t increase the speed of light.
        无论你做何努力,赋于其何种优先级,你都无法提高光速。

        (2a) (corollary). No matter how hard you try, you can’t make a baby in much less than 9 months. Trying to speed this up *might* make it slower, but it won’t make it happen any quicker.
             (推论)无论您做何尝试,都无法是怀胎小于9个月。加速的尝试可能会让它更慢,但绝不会更快。

   (3)  With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead.
        只要推力足够,猪也能飞起来。但这不能保证是件好事,因为难以预料它将在何处着陆,而当它在你的头顶飞过时将是及其危险的。

   (4)  Some things in life can never be fully appreciated nor understood unless experienced firsthand. Some things in networking can never be fully understood by someone who neither builds commercial networking equipment nor runs an operational network.
        除非亲身经历,否则生命中许多事情是无法正确领会和理解的。对于没有组建过商用网络设备或运行过运营网络的人来说,网络中的一些东西是不可能完全被理解的。

   (5)  It is always possible to aglutenate multiple separate problems into a single complex interdependent solution. In most cases this is a bad idea.
        总可以粘合几个分离的问题,到一个有复杂的互相依赖关系的解决方案,但大多数情况下,这是个坏主意。
      
   (6)  It is easier to move a problem around (for example, by moving the problem to a different part of the overall network architecture) than it is to solve it.
        推卸问题(如将其移到网络架构的其它部分)总比解决问题容易。

        (6a) (corollary). It is always possible to add another level of indirection.
             (推论)增加另一个间接层总是可能的。

   (7)  It is always something
        总会错过一些事

        (7a) (corollary). Good, Fast, Cheap: Pick any two (you can’t have all three).
             (推论)优秀、快速、廉价,只能任择其二(你不能得到全部三个)。

   (8)  It is more complicated than you think.
        事情总比你想象的复杂。
   (9)  For all resources, whatever it is, you need more.
        对于所有的资源,不管它是什么,您总是需要更多。

       (9a) (corollary) Every networking problem always takes longer to solve than it seems like it should.
            (推论)每个网络问题,解决它所需的时间总是比期望的长。

   (10) One size never fits all.
        没有放之四海而皆准的办法

   (11) Every old idea will be proposed again with a different name and a different presentation, regardless of whether it works.
        每个旧观点将会用一个不同的名字和外观再次提交,而不管他是否工作。
        (11a) (corollary). See rule 6a.
              (推论)参见6a。

   (12) In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away.
        对于设计协议,仅当不能去掉任何东西,而不是无法增加任何东西时才是完美无缺的。

Security Considerations
安全事项    

   This RFC raises no security issues. However, security protocols are subject to the fundamental networking truths. 
   本RFC没有任何安全问题,然而安全协议受制于网络基本真理。

References
参考文献

   The references have been deleted in order to protect the guilty and avoid enriching the lawyers.
   参考文献已经被删除,以保护犯罪,并且以免肥了律师。

Author’s Address

   Ross Callon
   Internet Order of Old Farts
   c/o Bay Networks
   3 Federal Street
   Billerica, MA  01821

   Phone: 508-436-3936
   EMail: rcallon@baynetworks.com

【转载】:CCTV 采访的大学生是 CCTV 的实习生

6月18日CCTV在播报“谷歌中国传播色情信息”的新闻中,采访了一位名叫高也的大学生,这位大学生作证指责谷歌中国搜索中的色情链接“毒害特别大”,他举例说他的一名同学便沉迷在谷歌色情链接指向的色情网页中无法自拔。

6月19日,网民在搜索后发现,高也原来是CCTV焦点访谈的实习生(他的博客日志摘录,他的校内网主页讨论截图,据说是他本人发表在猫扑上的声明)。CCTV以自己内部员工的证词为证据是不可信的,是假公济私,是违反公众利益的行为。此外,如果他的同学已经成年,那么他便能为他的行为负责,点击黄色网站和谷歌有什么关系?

【转载】JIRA+MySQL配置

JIRA+MySQL配置

1、JDK、JIRA、MySQL安装完毕,停止JIRA服务

创建数据库:
mysql
create database jiradb character set ‘UTF8′;

创建用户并赋与权限:
create user jirauser identified by ‘jira’;
grant all privileges on *.* to ‘jirauser’@’%’ identified by ‘jira’ with grant option;
grant all privileges on *.* to ‘jirauser’@’localhost’ identified by ‘jira’ with grant option;
flush privileges;

2、修改JIRA端口

JIRA是集成在Tomcat上面的,所以修改端口的方法和Tomcat修改端口的方法是一样的。

3、JIRA默认使用的数据库是HSql,如果要迁移到MySQL,可以通过以下的配置改动。

1)修改server.xml (路径:/jira/conf/server.xml)

第13行:
username=”jirauser”
password=”780824″
driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost:3306/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8″
(删除minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis项 )
maxActive=”20″

validationQuery=”select 1″/>

注:以上“localhost”可不该,也可改为主机名或设为”主机IP:端口“,mysql端口号为”3306“。

b)修改entityengine.xml (路径:/jira/atlassian-jira/WEB-INF/classes/entityengine.xml)

第100行修改为:
删除schema-name=”PUBLIC”

4、安装连接驱动包 Mysql JDBC Driver

cp mysql-connector-java-5.1.7-bin.jar /jira/common/lib/

5、启动JIRA服务 。

现在JIRA的数据库已经是MySQL了。

如果希望更进一步,将JIRA服务的依赖服务中加上MySQL服务,可以在注册表中更新

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JIRA240209102746

JIRA240209102746由于是JIRA服务名太长而在注册表中随机生成的名字,在基中添加一个DependOnService多文本键值,把MySQL服务名添加进去就行了

这样的结果是JIRA依赖于MySQL,JIRA会在MySQL启动后启动,如果MySQL停止,JIRA会先于MySQL停止。