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

ericyung

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

http://www.w3schools.com/tags/tag_doctype.asp

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

ericyung
Primo Quarto by Giuseppe Viganò
Reposted frombookcase bookcase viaula ula

March 01 2010

ericyung
unforch, so true
Reposted fromjoshisyourbff joshisyourbff

February 08 2010

ericyung
6393 c032 500
Reposted fromchillzone chillzone

January 30 2010

ericyung
9300 64dc
switch
Reposted fromiber iber

January 27 2010

Query the WEB : YSQL


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

http://net.tutsplus.com/tutorials/other/an-api-for-the-web-learning-yql/

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.

http://developer.yahoo.com/yql/console/

December 22 2009

ericyung

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')
lbl.show()
app.exec_()
Reposted fromstcnetworks stcnetworks
ericyung
ericyung

October 15 2009

ericyung
5214 af92 500
ericyung
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.

ericyung
Reposted fromzopita zopita

October 03 2009

ericyung
5121 3d0a 500
Reposted fromneurotic neurotic
ericyung
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!

Schweinderl