Now and then the narrow bandwidth and relentless sequencing of slides are said to be virtues, a claim justified by loose reference to George Miller's classic 1956 paper “The Magical Number Seven, Plus or Minus Two.” That essay reviews psychological experiments that discovered people had a hard time remembering more than 7 unrelated pieces of really dull data at once. These studies on memorizing nonsense then led some interface designers to conclude that only 7 items belong on a list or a slide, a conclusion that can only be reached by not reading Miller's paper.
Edward R. Tufte. The Cognitive Style of PowerPoint
About a month ago I release part one of my series “A tale of two viewports,” where I discuss the widths and heights of the viewport, the <html>
element, and related issues on desktop browsers. Today I release part two, which deals with the mobile browsers. And of course there’s the inevitable compatibility table.
I advise you to read part one before starting on part two; part one explains some crucial concepts that you need in order to understand part two.
Mobile browsers have two viewports, and not one, as the desktop browsers have. On mobile it’s impossible to make the viewport (relative to which all CSS layouts are calculated) as wide as the screen, because the screen is far too tiny and some CSS layouts may look horribly squashed.
Therefore mobile browser vendors have split the viewport into a visual one and a layout one; the first is the area the user actually sees on his screen, the second the area in which the CSS layout is calculated. This makes sense, but it’s one more complication for mobile web developers.
I also treat mouse coordinates, media queries, and the <meta viewport>
tag.
Curious findings include:
<meta viewport>
.<meta viewport>
in Samsung WebKit (on bada), several properties change meaning and suddenly give different data. This is obviously a bug, and one I hadn’t expected. It makes your job as a web developer more complicated — but then, nearly everything I discover does.Have fun!
Mongrel2 is “Self-Hosting”. Zed Shaw’s Mongrel2 is shaping up to be a really interesting project. “A web server simply written in C that loves all languages equally”, the two most interesting new ideas are the ability to handle HTTP, Flash Sockets and WebSockets all on the same port (thanks to an extension to the Mongrel HTTP parser that can identify all three protocols) and the ability to hook Mongrel2 up to the backend servers using either TCP/IP or ZeroMQ. I’m guessing this means Mongrel2 could hold an HTTP request open, fire off some messages and wait for various backends to send messages back to construct the response, making async processing just as easy as a regular blocking request/response cycle.
Vector Icons - http://raphaeljs.com/icons/
|
Feast on slides: How Custom Events Will Save the Universe, a talk I gave yesterday at TXJS. (Travel can be fun, but you can’t beat conferences held where you live.)
Shared by arty
надо же, яндекс поддерживает уже второй микроформат, наверное, у них появился проповедник, интересно, кто?
Если вам иногда хочется приготовить что-то новенькое и вы обращаетесь за помощью к интернету, то знаете, как тяжело выбрать из нескольких десятков похожих рецептов подходящий. Современные кулинарные порталы содержат информацию о множестве разнообразных способов приготовления, например, блинов с творогом, свинины с ананасами или банальной шарлотки.
Как же среди этого разнообразия быстро выбрать рецепт, который подойдет вам? Используйте наш поиск! Уже некоторое время Яндекс прямо на страницах результатов поиска показывает для страничек кулинарных сайтов набор ингредиентов и их пропорции, начало инструкции, время приготовления и другие параметры рецепта.
Например, так сейчас выглядит в Яндексе рецепт салата "Пампас":
Для того чтобы сформировать такие описания, нам необходимо выделить в тексте страницы отдельные смысловые части. И владельцы кулинарных сайтов могут нам в этом помочь. Так как структура страниц с рецептами на разных сайтах в целом стандартна, мы решили разработать партнерскую программу, к которой мог бы присоединиться любой кулинарный ресурс.
Рассказать Яндексу о структуре своего сайта, содержащего кулинарные рецепты, можно одним из двух способов:
- сформировать XML-фид и указать его адрес в соответствующей форме Я.Вебмастера;
- разметить рецепты на своем сайте микроформатом hRecipe.
Выбирайте способ передачи информации по своему усмотрению – набор данных одинаковый и результат, соответственно, тоже. Подробнее ознакомиться с правилами участия в партнерской программе владельцы кулинарных ресурсов могут в разделе Помощь.
RFC 1925 (rfc1925) - The Twelve Networking Truths - http://www.faqs.org/rfcs...
|