Jun 15, 2007

Running Safari using Webkit Nightly Build(Windows)

We are all very excited about the beta release of Safari for Windows, but it is very buggy right now. This is even worse for Non-English users, such as we Chinese. The current beta version 3.01 doesn't support Chinese language rendering. Now I will tell you how to solve it partially using Webkit Nightly Build

For those who don't know what Webkit is, here is a general idea: Webkit is the rendering engine of Safari. Apple has made it opensouce, so that developers from the community can contribute to it.

By update your Safari webkit to the latest nightly build, you can benefit from the  latest improvement, but of course you are at a risk of suffering new bugs as well. I have just update my Webkit to the latest(r23540), the very first improvement i can see is that now i can view Chinese websites, sadly, I still cannot imput Chinese. But who knows, maybe tomorrow the nightly build will solve this!

Here is the process of update your Webkit to the Nightly build:

1. download the Webkit Nightly Build  for Windows Here

2. Extract it somewhere, all files should be under a folder called "WebKit-r23540', the number varies on your nightly build version.

3. Go to your Program File/Safari folder, create a new folder called "New"

4. Copy the Webkit.dll from "WebKit-r23540" to the "New" folder.

5.  While browsing the folder Program Files/Safari, right click and choose "new">"shortcut". For the "Location", put 

 

%PROGRAMFILES%\Safari\Safari.exe /frameworkPath:"%PROGRAMFILES%\Safari\New"

 

For the "Name", just leave it as default.(Safari.exe).

6. Inside the "Webkit-r23540" folder, there should be a folder called"Webkit.resources", copy everything there to the "Webkit.resources" folder under your "Safari" folder. 

7. Done. Now you can double click the Safari.exe shorcut to launch Safari with the latest Webkit build. You can duplicate the shortcut wherever you like.

Note: Dont replace the original "Webkit.dll" under your Safari folder! It will ruin your Safari app and you have to reinstall it again. 

8. In order to render Chinese font properly, you'd better change the "Encoding" to "simplified Chinese". "Edit">"Preferrences">"Appearences" 

If you find there is new Webkit Build over the Webkit website and you want to update further, the only thing you need to do is to extract the latest "Webkit.dll" and replace the one in "New" with the new one. 

Jun 6, 2007

这他妈的是谁教的网页规范?

我今天已经出离愤怒了!刚才在网上搜索图片,结果找到这个中文网站,打开的是预览列表页面,但是半天显示不出三张图片,就感觉奇怪了。打开它的source code看到了下面的东西。

 

<A href="/gif/DetailView.htm?Detail=http://img3.3lian.com/2006/016/03/001.jpg" target=_blank><IMG height=190 alt="" src="http://img3.3lian.com/2006/016/03/001.jpg" width=126 border=0 pop="点击查看原图"></A>

 也就是说,他在预览页面根本没有对于原图片制作thumbnail,而是直接调用原图片作为预览显示!而且用height来人为缩小图片大小。当时就差点骂出声来!这他妈的是什么网页规范?难道用Photoshop对图片做个批处理就这么难吗?最近一直在看xhtml&css,对规范相当在意。你既然把网页架设起来,就是要让人家看的,如果你的网页因为coding不规范,影响用户浏览,就该骂!最近遇到相当多这类的事情,现在都什么时代了,国内某些自认高手的网站设计者连基本的w3c的标准都不知道是怎么一回事。就如同上次看到Wuvist写的,现在很多人连基本的html的规范对没有掌握,就屁颠颠得去搞php和asp。相当看不起这些人!

London 2012 Olympic Games Logo Launched!



Everything should be made as simple as possible, but not simpler. ~Albert Einstein
Simplicity is one thing, superficiality is another!-- Littleboy.

Jun 2, 2007

BackRow SDK unleashed for Apple TV from hacker.


So often time it happens, we all live our life in chains, and we never even know we have the key. ~The Eagles, "Already Gone"

Jun 1, 2007

The True Story of the Statue of Liberty


History does not teach fatalism. There are moments when the will of a handful of free men breaks through determinism and opens up new roads. ~Charles de Gaulle