Xah Web Dev Blog 2011-08
What do Microsoft, Apple, Mozilla, say about Dart?
CSS tutorial, now on its own page: Xah CSS Tutorial .
Steve Yegge's Google Platforms Rant
Evolution of the Script Tag
Semantic Web: Emerging Practice of Including Language Name in Embedding Computer Language Source Code on Web Pages
There's a new practice since HTML5 about embedding computer language source code on web pages.
Normally, you just use “pre”, like this:
<pre> x = 5 print x </pre>
However, there's no indication of what language it is. Indicating a language is desired because search engines and other tools can get that info and process it accordingly (such as syntax coloring tool). (this is the idea of semantic web.)
So, it appears, there's this practice of introducing the language info, by embedding a “code” tag with “class” set to “language-‹name›”. Like this:
<pre> <code class="language-python"> x = 5 print x </code> </pre>
However, there's no standardized string for the language string.
- Reference: The code element At dev.w3.org…
Overall, this practice seems ad-hoc and questionable, but a mob-standard might be better than none.
What is the problem? For example, the semantic of “class” tag isn't designed to be used to encode language names. Also, having “code” nested inside “pre” is a redundant hack. A improvement might be:
<code class="language-python" style="white-space:pre;display:block"> x = 5 print x </code>
But this throws-off intuition, because most people are much more familiar with “pre” tag. So, perhaps we can do:
<pre class="language-python"> x = 5 print x </pre>
All of the above are hacks in using HTML Microformat as a way to embed info for semantic web. A proper solution is a dedicated tag in XML, but XML is going the ways of dinosaur. Among the HTML microformat hacks above, i can't say which one is superior.
For the politics of HTML5 and XHTML, see: Are You Intelligent Enough to Understand HTML5? • HTML6, JSON SXML Simplified • HTML5 Doctype, Validation, X-UA-Compatible, and Why Do I Hate Hackers .
For practical tips on syntax coloring source code on the web, see: Emacs: Syntax Color Source Code in HTML • Syntax Coloring with Google-Code-Prettify.
some font related articles. The Chinese Fonts Comparison one is new.
- Common Web Fonts
- Best Unicode Fonts for Programer
- Google Webfont Tutorial
- Unicode Font Comparison: Arial Unicode MS vs DejaVu Sans
- Math Font ℤ
Project Gutenberg Founder Died (Michael S Hart, 1947 to 2011)
[ Michael S Hart ] [ https://en.wikipedia.org/wiki/Michael_S._Hart ] (1947 to 2011) died on Sept 6th. Cause of death is not mentioned.
Here is the news sources:
- Obituary for Michael Stern Hart By Gregory B Newby. At http://www.gutenberg.org/wiki/Michael_S._Hart
- Michael Stern Hart, 1947-2011 By Maitri Erwin. At http://vatul.net/blog/index.php/6100
- Obituary for Michael Stern Hart, Project Gutenberg Founder (gutenberg.org) By News.Ycombinator.Com. At https://news.ycombinator.com/item?id=2971971
I benefited from Project Gutenberg. Specifically, i used it to get the original text for the following 3 annotated work:
- The Tragedy Of Titus Andronicus
- Gulliver's Travels into Several Remote Nations of the World
- Alice in Wonderland
Are Googlers the Minions of Google Marketing?
Women in Tech: Today's Google Plus Recommendation?
Steve Jobs 3 Months Before He Died
Google: “Don't Be Evil” vs “Don't Do Evil”
The Google Plus Rap
The Google Plus Song (humor)
Google Chrome Reports a Malware Infested Site
Here is a Google Chrome screenshot, reporting that a site has been hacked.
The site belongs to a popular photographer Trey Ratcliff [Trey Ratcliff on Google Plus
If you need a invite to Google Plus, click on this
If you don't know what is Google Plus, see: What is Google Plus? (humor) .
TV Has Arrived on The Web
SEO: Underscore vs Hyphen: How Google Webmaster Advices Hurt Quality Writers 📺
What is Google Plus? (humor)
Translation SEO Scam
Facebook Disclosing Phone Numbers
it looks like you can now see all the phone numbers of your Facebook friends in one page. Go to menu [Accounts] on the upper right corner. Then menu [Edit Friends]. Then, menu [Contacts] on the left. I'm seeing about 40 mobile phones of my friends.
Google Shutdown its Dictionary Service
Insider Look of Google Search with 3 Top Google Engineers
A very enjoyable video that gives a insider look at Google's search engine and how the team works.
It is in a format of a interview, featuring the well-known Google search quality engineer [ Matt Cutts ] [ https://en.wikipedia.org/wiki/Matt_Cutts ], and engineer Ben Gomes (the man behind Google Instant and UI) and [ Amit Singhal ] [ https://en.wikipedia.org/wiki/Amit_Singhal ] (the “brain” of Google search engine). [ Danny Sullivan ] [ https://en.wikipedia.org/wiki/Danny_Sullivan_%28technologist%29 ], of the searchEngineLand.com fame, is the moderator, and he asked great questions.
The video is ~90 minutes long, but very enjoyable and informative, easygoing.
- Google Search Problems; Alternative Search Engines
- Google's nofollow Rule
- Google Sidewiki Block
- Domain Names, Cybersquatting, Resell Market
- Why Does Google Give SEO Advice?
- Google Search Ranking Ingredients (SEO secrets)
- Google Chrome, SPDY Protocol, Browser War II
- Google Ice Cream; Can Google Be Trusted?
What Your Google Plus Strategy Should Be?
Adjust your Google Ad preferences, or Opt Out