Wednesday, March 16, 2016

Grass Me Up

If you love the look and feel of grass yet you’re fed up with the mess, mud and maintenance, a Grass Me Up! artificial lawn could be right up your street!


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

Colors Creative

Premium WordPress theme for creative professionals, agencies, freelancers, illustrators, photographers and others.


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

Projecto Tasa Shop

Shop Online Project TASA


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

This Week's HTML5 and Browser Technology News (Issue 231)


Read this e-mail on the Web
HTML 5 Weekly
Issue 231 — March 16, 2016
W3C
Some insights into what the Web Platform Working Group (which has responsibility for W3C’s HTML spec) has been doing with HTML and its future plans.


Oliver Rivo
Go beyond simple linear and radial gradients with something less predictable, using a small base64-encoded SVG directly within your CSS.


O'Reilly Media
Brad Green’s keynote from Fluent on how new techniques are making it easy to use advanced browser features like Web Workers, HTTP/2, and service workers.


Frontend Masters  Sponsored
Two upcoming workshops:
Four Semesters of Computer Science in Six Hours Workshop on March 23rd for self-taught devs
2 Day: Complete Intro to React Workshop on March 24th-25th to learn React/Redux.

Frontend Masters

Smashing Magazine
A workflow for working with location data using best practices, providing users with privacy-friendly options, and working with a regard for the law.


Mozilla Hacks
WebAssembly is an emerging standard with a goal to define a safe, portable, size- and load-time efficient binary compiler target with near-native performance.


Parallax
A rich WebGL debugging toolkit for productive WebGL development and building more efficient WebGL apps.


CSS-Tricks
Robin Rendle explains a process for building stylesheets for a responsive site that uses both em and rem to give more control at the module level.


Nate Hunzaker
Exploring using an HTML5 Canvas to recreate Instagram-style filter effects. Includes lots of code and CodePen examples.


In brief

Curated by Peter Cooper and published by Cooper Press.
Want to post a job? E-mail us or use our self-serve system.

Unsubscribe : Change email address : Read this issue on the Web

Published by Cooper Press Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via HTML5 Weekly

Google Fit for Android: History API

Control User Access to Classes and Methods with Rauth

Rauth is SitePoint’s access control package for either granting or restricting access to certain classes or methods, mainly by means of annotations.

Open lock icon. Flat design style eps 10

In this tutorial, we’ll learn how to use it.

Why Rauth

Traditional access control layers (ACLs) only control routes - you set anything starting with /admin to be only accessible by admins, and so on. This is fine for most cases, but not when:

  • you want to control access on the command line (no routes there)
  • you want your access layer unchanged even if you change the routes

Rauth was developed to address this need. Naturally, it’ll also work really well alongside any other kind of ACL if its features are insufficient.

Annotations Are Bad ™

Somewhat “controversially”, Rauth defaults to using annotations to control access. No matter which camp you’re in regarding annotations in PHP, here’s why their use in Rauth’s case is nowhere near as wrong as some make it out to be:

  • as you’ll usually control access to controllers and actions in a typical MVC app, hard-coupling them to Rauth like this is not only harmless (controllers almost always need to be completely discarded and rewritten if you’re changing frameworks or the app’s structure in a major way), it also provides you with instant insight into which class / method has which ACL requirements

  • if you don’t like annotations, you can feed Rauth a pre-cached or pre-parsed list of permissions and classes they apply to, so the whole annotations issue can be avoided completely

  • there’s no more fear of annotations slowing things down because PHP needs to reflect into the classes in question and extract them every time. With OpCache on at all times, this only happens once, and with Rauth’s own cache support, this can even be saved elsewhere and the annotation reading pass can be avoided altogether.

Continue reading %Control User Access to Classes and Methods with Rauth%


by Bruno Skvorc via SitePoint

What is Adobe XD (or ‘Project Comet’)? And Should You Care?

We’ve been comparing Sketch App to Adobe Photoshop for a long time now, because frankly, Adobe hasn’t brought anything fresh to the table for serious user interface designers for quite some time.

Until now, that is!

We first heard about Project Comet (now Adobe Experience Design CC or Adobe XD for short) months ago, and Windows OS users rejoiced at the opportunity of having a 'Sketch-like' user interface design app that wasn’t restricted to Mac OS X users.

Adobe Experience Design CC

If you adore Sketch – or if you love the concept of minimal UIs, highly-intuitive tools, multiple artboards, built-in iOS/Google Material interface kits, easy-to-remember keyboard shortcuts and lightning-fast export facilities – then Adobe Experience Design CC is certainly for you.

Adobe XD is still in “Preview” and it too is restricted to Mac OS X for the time being, but sometime in late-2016 I'm assured we'll see Adobe XD on Windows too. I would assume this is so that Adobe XD can try to win over the hearts and minds of Sketch users before releasing on Windows.

For now, Adobe XD is free to use via the Creative Cloud app.

Interface

Intriguingly, Adobe XD doesn’t feel like an Adobe app. Its interface is wonderfully trimmed down in comparison to Photoshop and Illustrator; very minimal and non-threatening to those who hate to try out new tools, and like to stick to what they know.

It does come with its own visual aesthetic though (as all Adobe apps do), whereas Sketch uses the native Apple GUI. I have no objection to branded applications, however, I did find myself wishing that the input fields looked more like input fields.

All-all-in, the interface looks promising.

Inserting and Selecting Objects

You can see the insert tools on the left-hand side, however, the keyboard shortcuts are so simple you’ll hardly use them.

[caption id="attachment_126752" align="aligncenter" width="800"]Inserting objects via the toolbar Inserting objects via the toolbar[/caption]

  • Select: V
  • Rectangle: R
  • Ellipse: E
  • Line: L
  • Pen: P
  • Text: T
  • Artboard: A

Sketch users will be more accustomed to seeing the “layer list” here, however, Adobe XD has eliminated it all together and I was surprised at well I managed without it. If you want to reorder the layer hierarchy, two keyboard shortcuts can do that for you.

  • Bring Forward: command+]
  • Send Backwards: command+[

Design Tools and Styling

You can style layers using the interface on the right-hand side.

[caption id="attachment_126753" align="aligncenter" width="800"]Finding the tools and styling layers Finding the tools and styling layers[/caption]

Adobe XD doesn’t appear to have any vector editing tools because there are no icons that suggest it, but you can, in fact, double-click shapes directly on the canvas to enter the editing mode, and then double-click the vector’s points to convert them to bézier curves. What I would regard as an important tool is virtually hidden (no interface, no menu option, no icon), but if you think about it, it leaves the toolbar almost empty.

Has Adobe taken the minimalist approach too far, or are we becoming more aware of how design tools should work? Perhaps it’s true what they say, the best interface is no interface!

Sketch has a range of tools in their toolbar, with text labels too, which I always thought should have been a standard approach. Since Adobe XD has decided to keep things clean, the toolbar is almost non-existent — instead, the vector overlap tools (Add, Subtract and Intersect) appear in the styling interface and everything else is either kept out of the way or interface-less.

Here’s a list of keyboard shortcuts for Adobe XD to help you become more efficient with interface-less tools.

[caption id="attachment_126754" align="aligncenter" width="800"]Adobe XD vs. Sketch: comparing the toolbars Adobe XD vs. Sketch: comparing the toolbars[/caption]

Another missing element is the context/right-click menu, again hinting at a massive reduction in arbitrary features.

Smart Guides

Smart Guides were introduced to Photoshop in 2014, one of the many features added in an effort to compete with Sketch. It was an appreciable move by Adobe, a sign they were listening to their users, but it was also making Photoshop bulkier than ever.

Project Comet needed to happen, really (if they wanted to compete with Sketch anyway). Smart Guides in Adobe XD seem to be a lot more intuitive in comparison to Photoshop; hopefully, this feature becomes a lot more accessible in the future, for example, it would be nice to see Adobe implement Sketch’s “option-hold” keyboard feature that allows you to measure the distance between layers.

Smart Guides

Repeat Grid

Repeat Grid allows the designer to select layers (or groups of layers) and tile them horizontally and/or vertically like stacked cards. As you make changes to these cards, each of them updates in a synchronous manner, similar to Sketch’s “Symbols” feature.

Start by selecting a layer and clicking the “Repeat Grid” button.

[caption id="attachment_126756" align="aligncenter" width="800"]Activating Repeat Grids Activating Repeat Grids[/caption]

After that you can tug at the side handles to repeat the cards as many times as you’d like — you can even click the spacing in between each card and drag with the mouse to adjust it.

Adjusting Repeat Grids

Easy Sharing

Adobe XD offers a quick and easy artboard-sharing feature, which is similar to Sketch’s Local Network Sharing, except the recipient doesn’t have to be on the same internet connection as you since the artboards are hosted on Adobe servers. Click the share icon, let Adobe upload it, and then click “Copy Link”.

[caption id="attachment_126758" align="aligncenter" width="800"]Sharing artboards Sharing artboards[/caption]

As shown in the browser:

Viewing an Adobe XD mockup in the browser

Continue reading %What is Adobe XD (or ‘Project Comet’)? And Should You Care?%


by Daniel Schwarz via SitePoint