Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

January 03 2011


September 18 2010

web dev – browser compatibility

Recently restart some development on web page. Encounter some browser compatibility issue between IE and the others (sad we still need to support the IE 6)

After several attempts, finally find out it missing following line.

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>

below is very good explanation:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
is what’s know as a “document type declaration (or definition)” (DTD). In essence it identifies to the browser the type of code that is being used in the document. When declaring a doctype, it is then your responsibility as a designer to code the page to the specifications you have “declared” you are using in the doctype. In your example, you are declaring to the browser that you will be writing your code to HTML 4.01 transitional specifications and that is what it is expecting. If you falter from those “expectations” then your code may become considerd as “invalid” and may not display correctly in some browsers.

This is where things start to get a little confusing. The transitional doctype was institituted to allow a transitional period for designers to migrate from older coding standards to newer coding standards. An alternative to a “transitional” doctype would be a “strict” doctype.

In the example you have provided the distinction would be that for a “strict” doctype to be valid and display correctly, then you must write the code for your pages specifically to HTML 4.01 standards, whereas using a “transitional “doctype would allow you to use depracated (i.e. obsolete) code from say perhaps, HTML 4.0 or HTML 3.2 and, although it’s planned to eventually be elliminated would at least still work for the time being.

An example would be <font> tags. Very old coding practice and now depricated and has been replaced by using style instead.

For more on doctype declarations (a.k.a. DTD’s) go here


link: http://www.ozzu.com/website-design-forum/first-line-html-code-doctype-html-public-t58206.html

another thing is the MUST HAVE  (life saving) tools:

- firebug

- html validator.

Just hard believe how people to develop page without these tools in the old day.

Salute to the developers them.

June 09 2010

Primo Quarto by Giuseppe Viganò
Reposted frombookcase bookcase viaula ula

March 01 2010

unforch, so true
Reposted fromjoshisyourbff joshisyourbff

February 08 2010

6393 c032 500
Reposted fromchillzone chillzone

January 30 2010

9300 64dc
Reposted fromiber iber

January 27 2010

Query the WEB : YSQL

surf the net, I come across and great introduction on YSQL.


YSQL (“Yahoo Query Language”) is a tool to query a lot of things from web.
For example, you can query 19 “cat” photos from flickr by statement:

select * from flickr.photos.search where text=”Cat” limit 10

and result can be in XML and JSON format.

The best of all, it has a excellent console for you to test out the query.


December 22 2009


December 17 2009

Python - PyQt4 - Hello World

testingReflections.com - The mind-share information resource for software testing, agile testing and test-first/test-driven development

basic "Hello World" GUI application using Python and Qt (PyQt4)

#!/usr/bin/env python
import sys
from PyQt4 import Qt

app = Qt.QApplication(sys.argv)
lbl = Qt.QLabel('Hello World')
Reposted fromstcnetworks stcnetworks

October 15 2009

5214 af92 500
Reposted frominina inina vianeurotic neurotic

October 13 2009

eject cd in mac book pro

today I insert a DVD into my macbook pro but no response… it really make scare.

OK.. no panic.. googling and here is the answer (extracted from macrumors.com – http://guides.macrumors.com/Force_Eject_a_Stuck_CD_or_DVD )

# Open Disk Utility and choose the disc you wish to eject in the left-hand pane, then click on the Eject button.
# Some Macintoshes have a paperclip hole that you can insert a straightened paperclip into, manually triggering the eject mechanism.
# Open Terminal and type “drutil tray eject” to eject the disc/tray, and “drutil tray close” to close the tray.

Reposted fromzopita zopita

October 03 2009

5121 3d0a 500
Reposted fromneurotic neurotic
5415 e0b0
Reposted fromcc3 cc3 vianeurotic neurotic
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!