Navigation | Paul Gu|blog
March 27, 2009
XML Schema is an XML-based alternative to DTD.
An XML schema describes the structure of an XML document.
The XML Schema language is also referred to as XML Schema Definition (XSD).
The purpose of an XML Schema is to define the legal building blocks of an XML document, just like a DTD.
An XML Schema:
- defines elements that can appear in a document
- defines attributes that can appear in a document
- defines which elements are child elements
- defines the order of child elements
- defines the number of child elements
- defines whether an element is empty or can include text
- defines data types for elements and attributes
- defines default and fixed values for elements and attributes
XML Schemas are the Successors of DTDs
I believe in near future XML Schemas will be used in most Web applications as a replacement for DTDs. Here are some reasons:
- XML Schemas are extensible to future additions
- XML Schemas are richer and more powerful than DTDs
- XML Schemas are written in XML
- XML Schemas support data types
- XML Schemas support namespaces
Filed by Paul Gu at March 27th, 2009 under Programming
No comments on this post yet
March 25, 2009
On the internet, URLs stands for Uniform Resource Locators, and URIs stands for Uniform Resource Identifiers.
According to W3C’s definition:
"…a URL is a type of URI that identifies a resource via a representation of its primary access mechanism (e.g., its network "location"), rather than by some other attributes it may have. Thus as we noted, "http:" is a URI scheme. An http URI is a URL. The phrase "URL scheme" is now used infrequently, usually to refer to some subclass of URI schemes…"
According to another resource, it seems more sense to me:
"URI stands for Universal Resource Identifier and URL stands for Universal Resource Locator. Often times people use the terms interchangeably, which is not entirely correct. A URL is a subset of the URI popular protocols. These are protocols (http://, ftp://, mailto:). Therefore all URLs are URIs. The term URL is deprecated and the more correct term URI is used in technical documentation. All URIs are means to access a resource on the Internet and are a a technical short hand used to link to the resource. URIs always designate a method to access the resource and designate the specific resource to be accessed."
In conclusion, always trying to use URI for your reference…
Filed by Paul Gu at March 25th, 2009 under Miscellaneous
1 person have commented this post
March 22, 2009
After a long waiting for this great template, the first drop down menu template for MediaWiki, is now on my wiki and ready for download.
Here is the highlights of this release:
- Drop down menu
- Customizable drop down menus, menus can be edited on the fly and easy to maintain
- New design and new layout
- Clean and professional
- Updates for new Medawiki releases
- Tweak based on feedbacks from users
To download or how to use, please go to http://paulgu.com/wiki/Drop_Down_Menu_Series. If any other questions or issues, please post in GuMax Forums for fast response.
Thank you all for comments and feedbacks.
Filed by Paul Gu at March 22nd, 2009 under MediaWiki Skin
No comments on this post yet
March 17, 2009
I just released my new MediaWiki extension – GoogleAdSense 2.1, it includes all the feedback from other users, plus following:
- Make variable more easy to understand, plus detail comments
- Add Google Custom Search ability
- Remove Google Referral, since Google doesn’t offer this any more
- Other minor fixes and code improvement.
Enjoy!
Filed by Paul Gu at March 17th, 2009 under MediaWiki
No comments on this post yet
March 15, 2009
Vista has six default folder templates you can choose and change for the type of file folders you have in a Windows Explorer window. By default Vista will automatically assign a Folder Type Template to the Explorer window according to what type of files it contains. However, Vista will only use the default Folder Templates for external devices each time you open them since Vista will not remember the folder view settings when you turn off or remove the external media.
All Items template
Contacts template
Documents template
Pictures and Videos template
Music Details template
Music Icons template
How to Change a Windows Explorer Folder Type Template?
1. Open a Explorer window that you want to change the folder type template for.
NOTE: To change the root directory (Computer or Local Disk C: ) template, open the Users folder in Local Disk C: . The changes in Users will be applied to the root directory as well. Be sure to also do the Apply to All Folder Type Templates section below, or it will not apply to the Computer or Local Disk C: location.
2. If you want to change all the folders templates in the current window then:
A) Click on View or right click in a empty area of the window.
B) Click on Customize This Folder.
3. If you want to change just a single folder template in the current window then:
A) Right click on the folder.
B) Click Properties.
4. Click on the Customize tab.
NOTE: Check Also apply this template to all subfolders if you want to change the templates for the subfolders in this folder as well.
5. Click on the drop down menu and choose a template.
6. Click OK to apply and close properties window.
7. Your template has been applied.
Filed by Paul Gu at March 15th, 2009 under Windows
1 person have commented this post
March 14, 2009
This mice rocks…
Elevate your skills with a revolutionary mouse designed to provide you with unprecedented performance, handling, and adaptability. Customize your mouse with every game you play using advanced software and adjustable accessories. Use the first ever LCD display on a gaming mouse for macro recording and DPI settings to reduce on-screen interference during game play.

Filed by Paul Gu at March 14th, 2009 under Miscellaneous
No comments on this post yet
March 14, 2009
人的气血盛衰,常常从面色显示出来。面色可以说是健康的温度计,能反映人体的健康状况。
“《黄帝内经》形容健康的面色叫作‘白绢裹朱砂’,即看上去如白色的丝绢裹着朱砂,白里透红;而不健康的人则常常表现出多种异常的脸色,如苍白、潮红、青紫、发黄、黑色等。”中国中医科学院西苑医院李跃华教授说。
面色苍白:中医学认为大多为虚证、寒证或失血。呼吸系统状况不佳脸色会发白;久病体虚、大出血、慢性肾炎等也会使面色发白;有贫血倾向的人,会因为血色素不足而使面色呈现白兼萎黄色。
面色潮红:多为热证。血得热则行,脉络充盈,血流加速则皮肤呈现红色。高血压患者就常常红光满面;结核病患者由于低热,会颧部绯红。
面色青紫:多为气血不通、脉络阻滞所致。心力衰竭、先天性心脏病、肝病导致血液中废物过多等,都会使面色变为青紫。
面色发黄:中医学认为,黄色鲜明属于湿热,黄色晦暗多属于寒湿;面色萎黄,多为心脾虚弱、营血不足;面黄浮肿为脾虚有湿。
面色发黑:多属肾病或血瘀证,常为重病。此外,长期使用某些药物,如砷剂、抗癌药等,亦可引起不同程度的面色发黑。
就面色光泽和湿润度而言,健康的皮肤皮脂(油分)和汗(水分)的分泌畅通,皮肤会保持柔软。气候原因可引起皮肤干燥,如多风、寒冷等。某些疾病也会使皮肤干燥,例如糖尿病,葡萄糖水平的波动会使皮肤变得干燥、手感粗糙。
李跃华教授建议,面色发白的人如果没有特别的病症表现,食补是最好的办法。可多补充鱼肉、鸡肉、黑豆、菠菜等食物,必要的话,食用一些红枣、枸杞、龙眼等补益气血之品。面色潮红的人应尽量避免刺激性食物,避免面部冷热刺激。寒证患者,可以多吃些牛羊肉、胡椒、生姜来发热,促进新陈代谢。对于偏食、营养不均衡引起的面色偏黄,就要纠正不良的饮食习惯。面色发黑的肾病患者应多食用具有补肾作用的食物或药物,如核桃、木耳、黑豆、黑芝麻等。
Filed by Paul Gu at March 14th, 2009 under Health
1 person have commented this post