background preloader

The Semantic Grid System: Page Layout For Tomorrow - Smashing Magazine

The Semantic Grid System: Page Layout For Tomorrow - Smashing Magazine
Advertisement CSS grid frameworks can make your life easier, but they’re not without their faults. Fortunately for us, modern techniques offer a new approach to constructing page layouts. But before getting to the solution, we must first understand the three seemingly insurmountable flaws currently affecting CSS grids. Problems Problem #1: They’re Not Semantic The biggest complaint I’ve heard from purists since I created The 1KB CSS Grid two years ago is that CSS grid systems don’t allow for a proper separation of mark-up and presentation. Floated elements must also be cleared, often requiring unnecessary elements to be added to the page. <div class="grid_3"> 220 </div><div class="grid_9"> 700 </div><div class="clear"></div> Problem #2: They’re Not Fluid While CSS grids work well for fixed-width layouts, dealing with fluid percentages is trickier. But when .grid_3 appears inside of a .grid_6 cell, the percentages must be recalculated. Problem #3: They’re Not Responsive Blame It On The Tools

Flash QRcode reader as3 – kasperkamperman.com : creative media technology [update] Paul Hinrichsen pointed me to a new implementation of a QRCode Reader (Adobe Native Extension) build by Sbhave. It works BRILLIANTLY and VERY fast. It is built for Flex but there is also a build for Flash CS6 which is easy to set up. A native extension is really fast code (mostly c++, with a Actionscript API). More info in this discussion: Google code project page: QRcode reader implementation that uses the QRCode Reader by Logosware (Libspark project). Modifications Implemented Adaptive Threshold by Quasimondo (Mario Klingemann) in the GetQRimage Class.Added the substract blur method that Mario Klingemann explains in his lecture about the process of reading QR codes. The user interface uses the minimalcomps by Keith Peters (bit-101) and the Hi-Res! Example (Flash Player 10 or higher) Generate a QRcode and print it out. Used resources Download : ReadQrSimple – source code

Scrivere i CSS con Less | CSS, Design LESS CSS è una libreria che ci permette realizzare fogli di stile utilizzando una sintassi più simile a quella dei linguaggi di programmazione, offerendo non pochi vantaggi specie sul piano della manutenibilità del codice. Andiamo subito al sodo Vi state forse chiedendo cosa sia quel codice contenuto nel secondo box? Si tratta di Less, un nuovo approccio alla scrittura dei CSS secondo una modalità più logica e produttiva. Se la novità vi ha incuriosito, continuate a leggere: non ne rimarrete delusi. I limiti dei CSS Da quando è stato introdotto il supporto ai CSS nei browser, lo sviluppo di layout grafici e di interfacce complesse ha subito una decisa evoluzione, tanto che oggi, sbirciando nel sorgente dei nostri siti preferiti, diventa sempre più facile osservare pagine con markup HTML ben formattato e totalmente semantico delegando ai fogli di stile il compito di formattarne il contenuto. Ciò che non è quasi per nulla variato è il modo con cui i CSS vengono scritti.

LESS « The Dynamic Stylesheet language LESS « The Dynamic Stylesheet language Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable. Less runs inside Node, in the browser and inside Rhino. There are also many 3rd party tools that allow you to compile your files and watch for changes. For example: compiles to Less can be used on the command line via npm, downloaded as a script file for the browser or used in a wide variety of third party tools. Installation The easiest way to install Less on the server, is via npm, the node.js package manager, as so: $ npm install -g less Command-line usage Once installed, you can invoke the compiler from the command-line, as such: $ lessc styles.less This will output the compiled CSS to stdout, you may then redirect it to a file of your choice: $ lessc styles.less > styles.css To output minified CSS, simply pass the -x option. Usage in Code which will output Grunt Tips

URL dispatcher A clean, elegant URL scheme is an important detail in a high-quality Web application. Django lets you design URLs however you want, with no framework limitations. There’s no .php or .cgi required, and certainly none of that 0,2097,1-1-1928,00 nonsense. See Cool URIs don’t change, by World Wide Web creator Tim Berners-Lee, for excellent arguments on why URLs should be clean and usable. Overview To design URLs for an app, you create a Python module informally called a URLconf (URL configuration). This mapping can be as short or as long as needed. Django also provides a way to translate URLs according to the active language. How Django processes a request When a user requests a page from your Django-powered site, this is the algorithm the system follows to determine which Python code to execute: Django determines the root URLconf module to use. Example Here’s a sample URLconf: Notes: Example requests: A request to /articles/2005/03/ would match the third entry in the list. Named groups Performance

LESS CSS, stringhe, namespace e scope delle variabili | CSS, Design Namespace e scope delle variabili Introduciamo un paio di concetti legati alla programmazione: namespace e scope delle variabili. Per quanto riguarda il primo concetto, è chiaro che un namespace ha un carattere di organizzazione del codice. Se volessimo assegnare a un #header a solo le proprietà di button() dentro #bundle potremmo scrivere: Questo fa in modo di “pescare” solo le proprietà che ci interessano e null’altro. Il concetto di scope è invece più legato alla “validità” delle variabili nei blocchi di codice, un po’ come succede nei linguaggi di programmazione tradizionali. Import È spesso necessario importare dei css all’interno del proprio foglio di stile. Il risultato di questa operazione sarà, una volta compilato il file, un unico file in cui tutto viene incluso. Stringhe Chiudiamo ricordando che spesso la manutenibilità e la riproducibilità di ambienti diversi può rendere utile definire come variabili anche delle stringhe. A cosa servono? Conclusioni Link utili

Top 10 Mobile Web Development JavaScript Frameworks By Jacob Gube Creating web apps and sites for the Mobile Web has its own sets of challenges and techniques. From UIs optimized for fingers instead of mouse cursors to the bandwidth limitations that most portable personal devices have, developing for mobile devices requires a paradigm shift for those of us who’ve traditionally created products aimed at desktops. To help you rapidly deploy cross-platform mobile apps and websites, there’s a wide range of JavaScript frameworks you can take advantage of. Some common characteristics of JavaScript mobile web development frameworks: Optimized for touchscreen devices: Fingers as input devices instead of mouse cursors provide an extra set of challenges in user interface design. In this article, you’ll find my top picks of JavaScript mobile web development frameworks you should consider using to build your next mobile web app or website. 1. jQuery Mobile 2. 3. 4. 5. xui.js 6. 7. zepto.js 8. 9. 10. Other JavaScript Libraries for Mobile Web Development

Learning LESS: Mixins We continue on our journey of Learning LESS today as we dig into an extremely powerful component of LESS: Mixins. If you haven’t read our first two posts on the topic, check out Learning LESS: An Introduction and Learning LESS: Variables. Blog Series Roadmap An IntroductionUsing VariablesUsing MixinsUsing Nested RulesUsing FunctionsDivide and ConquerPut It Into Action So let’s introduce LESS Mixins, and showcase some of what you can do with them. What is a Mixin? A Mixin in LESS is basically a common group of CSS properties grouped into one, which can then be inserted into various other LESS selectors. Any ideas where this might come in handy? So starting with a basic Mixin, let’s create a scenario that you might use this in a web design project. For this, we’ll create three classes, a serif class, sans-serif class and a monospace (code) class. Pretty standard so far, right? Back to the code, check out how we format our paragraph tag. Let’s look at the compiled version. Parametric Mixins

python-weather-api - A python wrapper around the Yahoo! Weather, Google Weather and NOAA APIs The module provides a python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs. Authors: Eugene Kaznacheev <qetzal@gmail.com> Joshua Tasker <jtasker@gmail.com> (pywapi - Python Weather API) From source Download the latest pywapi library from: Untar the source distribution and run: $ python setup.py build $ python setup.py install View the trunk at: Check out the latest development version anonymously with: svn checkout python-weather-api-read-only Yahoo! Use the following function, that fetches weather report from Yahoo location_id: A five digit US zip code or location ID. units: type of units. Returns: weather_data: a dictionary of weather data that exists in XML feed. Weather.com Use the following function, that fetches weather report from Weather.com More examples Script import pywapiimport string

CSS Mixins Creating mixins via the @mixin rule Mixins allow document authors to define patterns of property value pairs, which can then be reused in other rulesets. The mixin name is a class selector that identifies the mixin being declared. The @mixin keyword must be followed by the mixin name and a declaration block. The following lines define a mixin clearfix, and give it three property-value pairs: Document authors may use mixins to group vendor prefixes and simplify their code during the time it takes for vendors to stabilize their implementations. The following example groups various vendor prefixes for border-radius: Media dependent mixins Authors may specify media-dependent @mixins. The following lines illustrate how @mixins can be made media-dependent: In the absence of any media types, the mixin rule is unconditional. Referencing a mixin via the include property The 'include' property Include allows the property value pairs in an @mixin to be copied into the current declaration block.

Related: