background preloader

Learning

Facebook Twitter

What a C programmer should know about memory – Marek Vavrusa. Source: Weapons by T4LLBERG, on Flickr (CC-BY-SA) In 2007, Ulrich Drepper wrote a “What every programmer should know about memory”.

What a C programmer should know about memory – Marek Vavrusa

Yes, it’s a wee long-winded, but it’s worth its salt. Many years and “every programmer should know about” articles later, the concept of virtual memory is still elusive to many, as if it was a kind of magic. Awww, I couldn’t resist the reference. Even the validity of the original article was questioned many years later. “North bridge? I’ll try to convey the practical side of things (i.e. what can you do) from “getting your fundamentals on a lock”, to more fun stuff.

Understanding virtual memory - the plot thickens Unless you’re dealing with some embedded systems or kernel-space code, you’re going to be working in protected mode. The virtual memory allocator (VMA) may give you a memory it doesn’t have, all in a vain hope that you’re not going to use it. The NULL return value checking is a good practice, but it’s not as powerful as it once was. Utility belt: The Twelve-Factor App. What Every Frontend Developer Should Know About Webpage Rendering — Frontend Babel. Today I'd like to focus on the subject of web page rendering and why it is important in web development.

What Every Frontend Developer Should Know About Webpage Rendering — Frontend Babel

A lot of articles are available covering the subject, but the information is scattered and somehow fragmented. To wrap my head around the subject, for example, I had to study a lot of sources. That's why I decided I should write this article. I believe the article will be useful for beginners as well as for more advanced developers who want to refresh and structure what they already know. Rendering has to be optimized from the very beginning, when the page layout is being defined, as styles and scripts play the crucial role in page rendering.

This arcticle does not study the inner browser mechanics in detail, but rather offers some common principles. We start with an overview of browser actions when rendering a page: When users interact with a page, or scripts modify it, some of the aforementioned operations have to be repeated, as the underlying page structure changes. 30th June 2014. Algorithm to compare two images. Image comparison - fast algorithm. Правильное питание — залог здоровья. Выбираем блок питания. Часть 1. Практикум. Приведем небольшой пример.

Правильное питание — залог здоровья. Выбираем блок питания. Часть 1. Практикум

Если вы собираетесь покупать автомобиль, то вы прекрасно понимаете, что собираетесь использовать его прежде всего в качестве средства передвижения. Для этого машине нужно качественное топливо. В противном случае вам не избежать дорогостоящего ремонта. С компьютером происходит все то же самое. Для стабильной работы ему нужно электрическое питание. В данной статье мы постараемся доказать, что покупка дешевых «кормушек» может привести к нежелательным последствиям, а также развенчать некоторые мифы, буквально ставящие пользователей в тупик. Блок питания — не роскошь. Конструкция блока питания. DevDocs. 3D Принтеры. Structured Web Data Scraping. Everything you never wanted to know about JavaScript numbers (and you didn't know you could ask) – Bartek Szopka [Video] Унифицируем управление системами при помощи Rundeck.

Настройку большого количества серверов, упрощают системы управления конфигурациями Chef, Puppet, CFEngine, позволяющие быстро привести сервер в нужное состояние.

Унифицируем управление системами при помощи Rundeck

Но задачи автоматизации часто выходят за возможности инструментов. В сложных средах параметров и флажков к рецептам становится больше, чем самих рецептов. И инструменты сами становятся источником проблем. Использование Rundeck позволяет объединить и контролировать, все что есть. Возможности Rundeck Rundeck представляет собой кросс-платформенный инструмент, позволяющий автоматизировать в ЦОД любые команды, скрипты и процедуры. Ставим Rundeck Для установки в Linux предлагается DEB пакет, RPM репозиторий и универсальный launcher.

Конфигурационные файлы сервиса находятся в каталоге /etc/rundeck, здесь можно установить параметры среды и работы сервиса, настроить ACL (admin.aclpolicy), включить SSL, указать настройки проекта по умолчанию (project.properties) и так далее. Только при использовании консоли есть небольшая проблема. Вывод. WTF, HTML and CSS? Contents Declare a doctype Always include a doctype.

WTF, HTML and CSS?

I recommend the simple HTML5 doctype: Skipping the doctype can cause issues with malformed tables, inputs, and more as the page will be rendered in quirks mode. Box model math Elements that have a set width become wider when they have padding and/or border-width. Rem units and Mobile Safari While Mobile Safari supports the use of rems in all property values, it seems to shit the bed when rems are used in dimensional media queries and infinitely flashes the page's text in different sizes. For now, use ems in place of rems. Help! Floats first Floated elements should always come first in the document order. <div class="parent"><div class="float">Float</div><div class="content"><!

Floats and clearing If you float it, you probably need to clear it. Use the micro clearfix to clear your floats with a separate class. Alternatively, specify overflow, with auto or hidden, on the parent. Pro-Tip! Floats and computed height Floated elements are block level <! Форумы.