2006年12月29日

让apache支持shtml 文件

什么是SSI?
SSI是英文Server Side Includes的缩写,翻译成中文就是服务器端包含的意思。从技术角度上说,SSI就是在HTML文件中,可以通过注释行调用的命令或指针。SSI具有强大的功能,只要使用一条简单的SSI命令就可以实现整个网站的内容更新,时间和日期的动态显示,以及执行shell和CGI脚本程序等复杂的功能。

如何使你的Apache服务器支持SSI?

Apache默认是不支持SSI的,需要我们更改httpd.conf来进行配置。我这里以windows平台的Apache 2.0.x为例,打开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,搜索结果:


# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml


把这两行前面的#去掉。


然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes


保存httpd.conf,重起apache即可。

到此我们就完成了对Apache SSI的设置。

2006年12月16日

Windows Vista 激活破解补丁(Re-Arm Unlimited Installer 2.0)

说明:
1 下载该软件http://www.pconcool.com/attachments/month_0612/y200612513283.rar,并且解压运行里面的“Re-Arm_Unlimited_Installer_2.0.exe”文件;

2 不要重启电脑,点击开始菜单,并在“开始搜索”里面输入“CMD”,当菜单里面出现“cmd"图标后,把鼠标放到上面并按右键,选择“以管理员身份运行”;

3 在cmd窗口命令行里面输入“slmgr -rearm”并回车,耐心等待出现“成功”窗口提示,然后重启电脑;

4 重启电脑之后,你再打开控制面板里面的“系统”看看,试用期又被重置为30天啦!以后随时随地可以按照第2、3步骤重置!

上述方法完全不改变vista的重要文件而导致彻底启动不了,并且可以无限使用下去,直到出现完美激活的方法。

2006年12月13日

JavaScript Debugging Tool





Disclaimer
The author does not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk. (Deja Vu? I also love the Allegro disclaimer.)

Quick and dirty tour
So you don't like to read all articles you see on the web, or you don't have time for it? Then, just download the source files, and open the "debugDemo.htm" file on your favorite browser.

Background
Although the inner works require you to be an advanced web developer to understand and improve it, you need only to have basic knowledge of HTML and JavaScript to use the tool.

Introduction
Alright, you may be thinking right now: "I have the last Fire Bug extension for FireFox, I've got my WebDev bar for Fire Fox and Internet Explorer, and even Opera has a concrete JavaScript console. Why would I care about a tool for JavaScript debugging?". Well, please, let me try to convince you!

The need for a debug tool
Although browsers have their JavaScript console, it's mostly common to see people still use those famous alert("I'm here!") code all along their HTML code. In most development environments, it is recommended, if not required, that you get yourself a Fire Bug like extension to improve your debugging capabilities. However, sometimes, you need to deal with browsers that do not have such debugging power, or maybe you just can't install extensions. You may also need a place to write variable values as time goes by and as events occur on your page without thoese annoying alert pop-ups interrupting your navigation. You may also need more robust exception handling on your code, to help you debug systems, even when they are already deployed on servers. Enough talking, let's get to the code!

The debug tool

來源:http://www.codeproject.com/jscript/Javascript_Debugging_Tool.asp