分类: tech

  • 软件公司网站,谁更遵守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.

  • 农历问题

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