软件公司网站,谁更遵守web标准

恐怕大家不会相信,竟然是微软(还有mozilla和Opera),尤其microsoft.com与msn.com双双通过,我试了一下现在这个站点sunxiunan.com,也有不少问题。
不相信?可以自己试试,http://validator.w3.org/
可惜我经常去的msdn,http://msdn.microsoft.com有73个错误,难道是微软首页特意为validator做了优化??那也说明微软更重视标准吧。

原文在此
Microsoft – The Only Ones Following Web Standards!
Category: Programming | AlexTan
I’ve been doing work on a website recently, and I try to always stick to standards set by the W3C. Sure, call me a perfectionist, but following these standards can warn you of possible display errors in the browsers you don’t use. To figure out if your site follows web standards, you can go here. I checked out a list of tech websites, to see if many sites adhered to the standards, the results are pretty surprising.

Alienware – 48 Errors
Apple – 6 Errors
C|Net – 1452 Errors! The most!
Del.icio.us – 21 errors
Dell – 131 Errors
Digg – 7 Errors
Fedora – 1 Error
GNU – Complete Failure (encoding error).
Google – 48 Errors
HP – 29 errors
Konqueror – Passed Validation
Microsoft – 0 Errors What???
Mozilla – 0 Errors (Finally)
MSN – 0 Errors What??? Again.
Slashdot – 200 Errors (Slashdot has a mechanism that prevents you from validating, so I validated a Google cache of Slashdot.)
Sourceforge – 24 Errors
Sun Microsystems – 8 Errors
Suse – 3 Errors
Opera – 0 Errors
Redhat – 7 Errors
Wired – 51 Errors
Yahoo – 265 Errors Wow.

I’d just like to say kudos to Microsoft. For a company that does so many things wrong, they were actually able to pull off something perfect. Both MSN.com and Microsoft.com adhere perfectly to web standards! Every other company on this list needs to get their act together, especially C|Net with over 1000 errors! If you believe I made a mistake, or have other companies I should add to the list, go ahead and post in the comments.

网志新手教程 Blogging Starter Checklist 秀楠网站简单翻译版

Blogging Starter Checklist – Updated

by Rajesh Setty at 10:31AM (PST) on November 14, 2005 | Permanent Link | Cosmos

Many of my close friends are entering the blogging world. I am so happy for them. I started blogging in Feb 2005 and I have learnt that we need to do a few basic things (for starters) and I have put together a starter checklist for new bloggers. I have used this list to help my friends and now I thought I will make this public. This list is by no means complete and all the items may not be relevant to everyone.

1. Register a domain name with your name and redirect to your blog.
注册一个国际域名并且指向你的网志

My friend Munwar Shariff wanted me to do this for a long time but I kept postponing it. Finally when I got it done, it was amazing to find out how many people were coming to the blog by typing in www.rajeshsetty.com. It costs probably $10 a year but it’s worth every penny.

2. Get a “Creative Commons License”
得到一个共创协议

Creative Commons makes it easy to assign a license for your online content. I use a license called “Attribution-NonCommercial 2.0”

This means (in english)

You are free to
* to copy, distribute, display, and perform the work
* to make derivative works

Under the following conditions:
* by Attribution. You must attribute the work in the manner specified by the author or licensor.
* Noncommercial. You may not use this work for commercial purposes.

3. Get a feedburner account and direct feeds through feedburner
注册一个feedburner帐号,把网志的直接feed关联到feedburner

Most probably your blogging software will automatically provide an RSS feed capability. However, chances are that you may not be able to track how many readers are subscribing to your feed. By burning your feed via feedburner, you can get those statistics. Again, it only takes a few minutes to setup a free account on feedburner.
继续阅读“网志新手教程 Blogging Starter Checklist 秀楠网站简单翻译版”

建立个人网志的步骤

前一阵为了宝宝的这个网站,费了不少心思,下载安装了不少程序,感觉有些心得体会可以说说。

首先是宝宝网站要做成什么样子,母亲网、早教网、丫丫社区这些地方都提供了宝宝主页的服务,基本上是由首页加上留言板相册以及可以更换的几个主题构成,优点是简单易用,会打字就行,缺点也很明显,速度很慢,而且太单调,基本上丫丫社区的VIP用户的网站都没法看,经常是堆满了动画或者是javascrips脚本,而且在不同的分辨率下看到的效果差别很大,我这里1280×1024的分辨率看到很多的网站就乱套了。当然,他们的设计肯定是不支持FireFox也就是火狐了,很多网站只能打开一小部分。
如果想选择比较稳定的高质量的服务,像是比较专业的微软MSN或者wordpress.com、blogbus、mblogger这样的网志bsp都是不错的,当然,选择国内的服务有风险,请自己考虑是否能行。

想把宝宝的网站或者网志做大做好,买空间买域名是必不可少的,域名这个商品很多人不了解,比如我买的这个yahoo提供的域名,一年25元人民币,大家对这个可能没有什么概念,那我提供一个地方大家比较一下,www.net.cn中国万网,是国内一个比较大的网络服务提供商,它的国际域名一年100多人民币,这下就应该知道国内的有多黑了吧。依此类推,放网站空间的地方也比较黑,而且很难比较,比如打的比较厉害的edong或者什么其他的空间商,价格贵,限制数据库连接或者是用户连接数,价格上却和国际接轨。这个连接数是什么概念,比如有的服务商说50个连接,也就是同时只能有三四十人看你的网站,多了就提示错误或者变得很慢。这种服务不划算而且经常是不可信的。当然国外的服务也有风险,不过知名的商家都做了很多年,服务都是有数的,大家可以到一些知名的论坛上看看他们的评价,比如godaddy这个域名服务商,很多人赞赏他们的域名相关服务,但是对他们的网站空间服务不认同,这也许就是术业有专攻。

空间以及域名都买了,就是程序选择了,这其实也可以放在空间选择前面,比如要用asp的,还是php+mysql,还是perl cgi的,都应该先考虑好,不然,买了空间,自己喜欢的程序不能用就麻烦了,这里还是推荐使用php+mysql的,选择程序的余地比其他的大很多。

以后会继续介绍脚本的选择以及安装使用的心得。

每天备份 mysql 数据库的脚本

http://www.coolcode.cn

1. #!/bin/sh
2. cd /home/mysql-backup
3. rm alldb.5.tar.gz -f
4. mv alldb.4.tar.gz alldb.5.tar.gz>/dev/null 2>&1
5. mv alldb.3.tar.gz alldb.4.tar.gz>/dev/null 2>&1
6. mv alldb.2.tar.gz alldb.3.tar.gz>/dev/null 2>&1
7. mv alldb.1.tar.gz alldb.2.tar.gz>/dev/null 2>&1
8. mv alldb.0.tar.gz alldb.1.tar.gz>/dev/null 2>&1
9. tar zcf alldb.0.tar.gz alldb.sql>/dev/null 2>&1
10. rm alldb.sql -f
11. mysqldump –all-databases –opt -ppassword>alldb.sql

继续阅读“每天备份 mysql 数据库的脚本”

农历问题

想写个关于农历的问题,中文网上没有什么实质内容,都是些javascript或者htm语言,可以用,不过总感觉不对头.
翻着google,发现有人提到unix下有个程序lunar(月亮)可以将公历转换成中国农历,赶快down下来研究代码了,
因为dreamhost支持c作为cgi,就算不行,改成php应该也不难.