background preloader

New, unsorted

Facebook Twitter

Journal of Eivind Uggedal — Deploying WSGI applications with Puppet. Websockets 101. Written on Monday, September 24, 2012.

Websockets 101

The truth about structuring an HTML5 page. Permacultuur, eetbare tuin, tuinontwerp, groenjournalistiek. 8 box-sizing: width(), css(“width”), and outerWidth() One of the great new features in jQuery 1.8 is a built-in understanding of box-sizing: border-box which is supported by every modern browser.

8 box-sizing: width(), css(“width”), and outerWidth()

(Sorry, IE6 and IE7, please take one step back; I said modern browser.) If you showed people an element with a border on the screen and asked them the width of that element, they would naturally measure from the outside edges of the border. Yet that’s not the way CSS works in its default content-box mode. Normally, CSS width and height only include the “content” inside the border and padding.

As a result, designers (and jQuery) often need to add the width to the right/left padding and border to get the “natural” width of the element. Using box-sizing: border-box changes the CSS notion of the width of an element to include both the padding and the border dimensions, just the way you’d naturally measure it. jQuery versions before 1.8 were not fully trained in the ways of the border-box, but we’ve fixed this bug.

JavaScript Events And Responding To The User. Advertisement Whenever people ask me about the most powerful things in JavaScript and the DOM, I quickly arrive at events.

JavaScript Events And Responding To The User

The reason is that events in browsers are incredibly useful. Furthermore, decoupling functionality from events is a powerful idea, which is why Node.js1 became such a hot topic. Today, let’s get back to the basics of events and get you in the mood to start playing with them, beyond applying click handlers to everything or breaking the Web with <a href="javascript:void(0)"> links or messing up our HTML with onclick="foo()" inline handlers (I explained in detail in 2005 why these are bad ideas2). Note: This article uses plain JavaScript and not any libraries. Disclaimer: The event syntax we’ll be using here is addEventListener()3, as defined in the “DOM Level 3 Events4” specification, which works in all browsers in use now except for Internet Explorer below version 9.

All of this is based on event handling and reading out what the browser gives us. Kadirpekel/hammock. Pyramid EuroPython tutorial video — Daniel Nouri's Blog. Here's the videos and material for the Writing a Pyramid application tutorial that I gave at last month's EuroPython 2012.

Pyramid EuroPython tutorial video — Daniel Nouri's Blog

The tutorial is around 3,5 hours long. The accompanying material includes code and documentation for the seven individual steps of the tutorial (ex1_hello through ex7_final). (Head here if the videos aren't displayed.) This is the tutorial's complete description of the tutorial from the EuroPython website: Pyramid is a very general open source Python web framework. In this tutorial you will build from scratch a simple app in which users each have their individual workspaces, and can invite other users to collaboratively edit content.

While writing the application, you will learn about many aspects of Pyramid. Publieke dienstverlening op de kaart. The Magical Number Seven. Originally published in The Psychological Review, 1956, vol. 63, pp. 81-97 (reproduced here, with the author's permission, by Stephen Malinowski) Table of Contents My problem is that I have been persecuted by an integer.

The Magical Number Seven

Nicholas Zakas: Scalable JavaScript Application Architecture.


How to Create an Android App and APK on Android with Python. De projectiestring van het Rijksdriehoekscoördinaten stelsel « OpenStreetMap Nederland. Are hashbang URLs a recommended practice. Writing an Android GUI using Python (Gallery) Introduction Wrapandroid version is updated to 0.8.2.

Writing an Android GUI using Python (Gallery)

Please use this version. We might write Python code outside eclipse. In this case, we have no logcat window to show print message from python. Do not worry about, cle supports syslog. [SOLVED] DNS Not Working Any Guest on Linux Mint 13/Ubuntu… Just upgraded from VBox 3.1.x on Ubuntu 10.04 to VBox 4.1.12 on Linux Mint 13, which is based on Ubuntu 12.04.

[SOLVED] DNS Not Working Any Guest on Linux Mint 13/Ubuntu…

I installed the Oracle version of VBox from the standard repository, 4.1.12-77245~Ubuntu~precise. I have several virtual machines, including WinXP, Win7, Ubuntu 12.04, and OSGeo-Live (a Xubuntu-based geographic distro). I have DNS configured on my router, not on my host OS. The Story of KRNWTR - 3 Redenen waarom je wel kraanwater en geen bronwater moet drinken. 7 HTML5 features that you may not know about - Aaron Lumsden. 7 HTML5 Features That You May Not Know AboutWritten by Aaron Lumsden on 15 Sep 2012 HTML5 has been a hot topic recently. Although its been around for a while now, I still find myself coming across features that I didn’t know about. Here’s a few that I thought I’d share with you. To check what browsers support these following features visit When can i use. HTML5 autofocus Attribute. Adventures in Unicode SMS. Learning JavaScript Design Patterns. Design patterns are reusable solutions to commonly occurring problems in software design.

They are both exciting and a fascinating topic to explore in any programming language. One reason for this is that they help us build upon the combined experience of many developers that came before us and ensure we structure our code in an optimized way, meeting the needs of problems we're attempting to solve. Design patterns also provide us a common vocabulary to describe solutions. This can be significantly simpler than describing syntax and semantics when we're attempting to convey a way of structuring a solution in code form to others.

In this book we will explore applying both classical and modern design patterns to the JavaScript programming language. Target Audience This book is targeted at professional developers wishing to improve their knowledge of design patterns and how they can be applied to the JavaScript programming language. Acknowledgments Credits Reading We already use patterns everyday. Cairoplot by rodrigoaraujo01.