Archive for the ‘Web Dev’ Category

HTML parser for Mac and iPhone/iPod touch

While Apple Inc. provides XML parsers based on open source XML parsers, but they don’t for HTML.

One of a good parser I found is Element Parser and its source codes is host at GitHub. However there is no good explanation about how to use it.
So, I took a look at its sample source codes, and its FAQ page. My impression was that it would use CSS selectors.

So, if there are HTML tags like this :

<meta name="generator" content="WordPress 2.8.1" /> <!-- leave this for stats -->
<link rel="stylesheet" href="http://icodeblog.com/wp-content/themes/bluez/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://icodeblog.com/feed/" />
<link rel="alternate" type="text/xml" title="RSS .92" href="http://icodeblog.com/feed/rss/" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://icodeblog.com/feed/atom/" />
<link rel="pingback" href="http://icodeblog.com/xmlrpc.php" />

To retrieve information for CSS links, search pattern should be :

link[rel="alternate"]

There is a good explanation about CSS selectors at Selectutorial:CSS selectors

JavaScript – Cocoa bridging

If you write web app instead of desktop app, it is wider accessibility. But how to enable desktop features on a web app targeted for Mac or iPhone? You may want to write Objective-C / Cocoa code which calls JavaScript or vice versa.

I found some good articles on JavaScript-Cocoa.

Bespin – In-Browser IDE

Thanks to AJAX, web development became more like desktop application development. Nowadays it is not possible to think computing environment without networking, and network speed is getting faster for non-intranet networking.

Eventually IDEs for developing web application is based on the web browser.
The Mozilla announced such an IDE called Bespin.

I don’t know how it will handle network disconnection case, but if they utilize a cache file of a web browser, there will be no problem.

Here are two screenshots of the Bespin.

Bespin 0.1 running in a web browser

Bespin 0.1 running in a web browser


Project Browser

Dashboard, i.e.Project Browser

CSS Animation : very easy and good explanation

CSS Animation is sometimes said to be Flash-replacement for certain areas. I doubt how flexible its animation can be : presentation flexibility, performance, resource usage, and so on.

The WebKit blog article introduces the CSS animation in very easy-reading style. Probably most of advertisement flash can be replaced with this CSS animation, and it would get rid of lots of burden from web browsers. Especially Korean web sites use flash-advertisement very heavily. They are even obstructive. I want them not to use that many advertisement in such obstructive way. But if they once do it, I want it not to degrade web browser responsiveness.

Web developers! Study the CSS animation!!!!!

Follow

Get every new post delivered to your Inbox.

Join 49 other followers

%d bloggers like this: