解决在虚拟主机安装drupal的问题

September 11th, 2008 No comments

直接安装drupal 6.4到虚拟主机会遇到当安装数据库这样步的时候,输入正确的数据库信息却不能走到下一步。而页面又重新刷新了一次,没有任何错误提示信息。

解决方法:填好数据库信息时,修改 sites/default/settings.php数据库相关的内容为真实的设置,再点击 save & continue。

Categories: Miscellaneous Tags: ,

Official Google Blog: A fresh take on the browser

September 1st, 2008 No comments

Official Google Blog: A fresh take on the browser

Categories: Architecture Tags:

按摩猫

August 30th, 2008 No comments

煎蛋时发现的搞笑视频,看那只作享受状的猫~

Categories: Life Tags:

Tomcat ssl 双向认证

August 26th, 2008 No comments

感谢雕虫小技的文章 http://blog.csdn.net/jasonhwang/archive/2008/04/29/2344768.aspx

Categories: Java世界 Tags: , ,

August 16th, 2008 No comments

自从去年11月份开始,用Google提供的方法把域名指向这个ghs.l.google.com别名方式就行不通了。。今天在网上逛。发现这样的方法:改用A记录指向这些IP居然用自定义域名可以在国内访问了。。啊哈哈哈。。

Note:

但是不能用Live Writer来写,超级郁闷 G F W 啊~~

Categories: Life Tags:

解决thinkpad x61 热拔插网线造成的蓝屏死机问题 (0×40000080)

August 8th, 2008 No comments
折腾了大半个月 0×40000080 这个错误代码,在网上放狗搜了又搜。总是的不到解决。先是怀疑是网卡驱动的问题。装了个最新的Intel 驱动,结果还是不行。唉。结果终于找到办法:
1. 右键点击桌面的网上邻居选择属性。
2然后在右键点击当前的连接选择属性可以那些协议视图中看到 TVT Packet Filter Service
删除该协议。解决了这个频繁蓝屏死机的问题。

在Intel网站找到最新的驱动程序,最后更新驱动为最新的9.12.18.0(2008.2.6)
OK, 随便怎么拔插网线都没有问题了。

今天再次总结下步骤(2008-10-11):

1.删除网络连接属性中的 TVT Packet Filter Service

2.更新网卡驱动到9.12.18.0(2008.2.6)

Categories: Life Tags: ,

解决Subclipse导致Eclipse崩溃问题

April 28th, 2008 No comments

几天安装了新版svn,版本是1.4.4.结果导致使用Eclipse的Subclipse去获取SVN资源库内容时,Eclipse 就屡次崩溃。先还找不到原因。放狗搜了下。结果是环境变量APR_ICONV1_PATH惹的祸,修改这个变量名为APR_ICONV1_PATH1,哦也,重启Eclipse使用Subclipse已经没问题了。哈哈

参考:

http://subclipse.tigris.org/servlets/ReadMsg?listName=users&msgNo=10234

在Linux下配置Tomcat自动启动的简单方法

April 11th, 2008 1 comment

1.安装好JDK和Tomcat, 测试可以正常运行Tomcat.

2.在/etc/init.d 目录下创建名为tomcat的文件(如该目录下已经有同名文件, 则改成其他名字), 该文件内容如下:

#!/bin/sh

# chkconfig: 345 88 14# description: Tomcat Daemon

#Change to your Jdk directoryJAVA_HOME=/opt/jdkexport JAVA_HOME

#Change to your Tomcat directoryCATALINA_HOME=/opt/tomcatexport CATALINA_HOME

# Determine and execute action based on command line parameter

case "$1" instart)echo "Starting Tomcat..."sleep 2$CATALINA_HOME/bin/startup.sh;;stop)echo "Shutting down Tomcat..."sleep 2$CATALINA_HOME/bin/shutdown.sh;;*)echo "Usage: $1 {start|stop}";;esacexit 0

其中以下两行必须要出现在文件中:

# chkconfig: 345 88 14                     ---表示该脚本应该在运行级 3, 4, 5 启动,启动优先权为88,停止优先权为 14。这3组值可以根据自己的情况调节

# description: Tomcat Daemon               ---?

3.在命令行输入以下命令修改文件tomcat的运行级别

chmod a+x /opt/init.d/tomcat

4.在命令行输入以下命令以测试服务可以正常启动

service tomcat start
servive tomcat stop

5.然后将tomcat加入到系统服务中,以便可以自动启动

cd /opt/init.dchkconfig --add tomcat

6.可以通过以下命令查看tomcat服务的详情. 具体的chkconfig命令详情请查看网上资料

chkconfig --list
Categories: Java世界 Tags: ,

Maven2 and CruiseControl SubversionTips

November 15th, 2007 No comments
  1. If you use maven2 as a tool in Cruisecontrol ‘s build process you must use this command : svn update to update the workcopy of your project from svn repository in the Cruisecontrol’s project folder to get the entire svn information .If you don’t do that the cruisecontrol will never build as you want.
  2. At firest time if you add the ‘target’ folder to svn repository then after  the maven2 build phase the .svn folder(svn info.) were deleted  and sometime you update or commit resources there could arise error like this:working copy admin area missing.You need to set a    svn:ignore  property to svn for it to ignore the miss entry .command like ‘svn propset svn:ignore target https//somehost.com/someproject/trunk ‘
Categories: Java世界, Project Management Tags:

使用Mysql时,避免的数据库跨平台导入导出大小写不一致的问题

September 26th, 2007 No comments

在Mysql数据库中,设置环境变量 lower_case_table_names=0;可以在大小写不敏感的系统上创建大小写敏感的数据库或表。从而避免的数据库跨平台导入导出时,大小写不一致的问题。

Table and database names are stored on disk using the lettercase specified in the CREATE TABLE or CREATE DATABASE statement. Name comparisons are case sensitive. Note that if you force this variable to 0 with –lower-case-table-names=0 on a case-insensitive filesystem and access MyISAM tablenames using different lettercases, index corruption may result.

http://dev.mysql.com/doc/refman/5.1/en/identifier-case-sensitivity.html

Categories: MySQL Tags: ,