Monday, February 29, 2016

Web Design Weekly #224

Headlines

The New Web Typography

Robin Rendle looks into how we should go about making rules for typesetting on the web. A well thought out post that is a great read. (robinrendle.com)

The current state of modular CSS (medium.com)

​Get multiple job offers from top companies with 1 application

​Web developers are in demand, so shouldn’t companies apply to you? On Hired, that’s exactly how it works. Get 5+ job offers from companies like Uber, Square, and Facebook with 1 application. Join Hired today and get a $1,000 bonus when you get a job! (hired.com)

Articles

The Conversational UI

The rise of applications no longer having a graphical user interface is an extremely interesting area that I’m sure becomes more common as tools like Slack continue to grow. In this post Matty Mariansky explores the current landscape. (alistapart.com)

Misconceptions of Tooling in JavaScript

Jack Franklin expresses his frustration with tooling getting in the way of learning the basics of JavaScript libraries and shares a simple React example. (javascriptplayground.com)

How to lint your Sass/CSS properly with Stylelint

Scotty Vernon talks about why we should lint our stylesheets and how to implement stylesheet linting into our build pipelines for both vanilla CSS and Sass. (creativenightly.com)

Managing Typography

Harry Roberts gives some great advice about managing typography headings across large and complex apps. (csswizardry.com)

Trends That Will Define Web Design in 2016 (sitepoint.com)

SVG Working Group Meeting Report (tavmjong.free.fr)

How we use Sass Maps (bigeng.io)

Tools / Resources

Vision API

The Google Cloud Vision API enables developers to understand the content of an image by encapsulating powerful machine learning models in an easy to use REST API. Pretty crazy stuff. (cloud.google.com)

Chainable BEM Modifiers

Jordan Lewis explains a variation of the popular BEM methodology that they currently use at Envato. Dubbed BEVM, it provides the ability to quickly and concisely configure HTML modules and keep their codebase under control. (youtube.com)

Rebound.js

A simple library that models spring dynamics for the purpose of driving physical animations. (facebook.github.io)

Draft.js

A rich text editor framework for React projects. (facebook.github.io)

Screencasts on a (Performance) Budget (daverupert.com)

Speech Bubbles with SVG (thenewcode.com)

Firefox DevTools Reload(mozilla.org)

Inspiration

Logo Experiments

Bryan Braun explores ways to create a logo with modern front-end techniques. (sparkbox.github.io)

How and Why GitHub Switched to SVG for Its Icons (github.com)

The difference between a goldfish and a human (markboulton.co.uk)

Jobs

Front End Developer at GIPHY

We’re a wildly creative and passionate group of GIF-obsessed individuals continuing to build out what we believe is the future of GIFs. We have big dreams and goals for 2016 and are looking for like-minded, talented people to join us. (giphy.com)

Application Engineer at Vimeo

Vimeo’s mission is to empower creators to make, share and sell amazing videos directly to viewers worldwide, in the highest quality possible and with no interruptive advertising. If you’re dying to help us take Vimeo to the next level, we’re dying to hear from you. (vimeo.com)

Need to find passionate developers? Why not advertise in the next newsletter

Last but not least…

Look Ma! No media queries! (codepen.io)

A love letter to jQuery (madebymike.com.au)

The post Web Design Weekly #224 appeared first on Web Design Weekly.


by Jake Bresnehan via Web Design Weekly

How to Empower the Amazon Echo with IFTTT

The Amazon Echo is a voice enabled speaker and personal assistant that has a range of capabilities which grow every day. As a developer who is fascinated by both the Internet of Things and artificial intelligence — the Echo holds so much potential!

The best way to begin experimenting with your own Echo customizations is via IFTTT (If This Then That), a service that allows rule based actions and triggers between a range of devices and services with no programming required. In this article, we will explore a few examples of functionality that the Echo can achieve when paired with IFTTT.

If you are in Australia — like me — and aren't quite sure how to get your hands on an Echo and set it up to work here, I have a quick guide on how to set up an Amazon Echo in Australia that I wrote at Dev Diner on this very topic! Whilst you can't get everything to work just yet, developers can get enough working that you'll be able to develop for the Echo in no time.

Completely New to IFTTT?

If you are completely new to IFTTT, we have a more generic overview of how it works in an earlier piece on Connecting LIFX Light Bulbs to the IoT Using IFTTT. We've also connected it to Node.js via the IFTTT Maker channel and WordPress via the IFTTT WordPress channel. Throughout this article, if you find any concepts in IFTTT a bit confusing, check the earlier articles — however I've aimed to structure this so that most readers can pick things up solely from this article.

Connecting Your Echo to IFTTT

To enable any of the below capabilities, we need to add the Amazon Alexa channel to IFTTT. Head to the Amazon Alexa page and click "Connect":

Connecting the Alexa channel

From here, you will be prompted to enter in your Amazon account details. Make sure you put in the account details for the account which your Echo is assigned to (if you have multiple accounts):

Signing into Amazon

Agree to give IFTTT access to all of your Alexa information by clicking "Okay":

Allowing Amazon permissions

When you've granted it the right permissions, you'll be directed back to IFTTT and should see a "Channel Connected!" message:

Amazon successfully connected

From there, the steps for beginning a new recipe with the Echo are always the same, as the Echo is only a trigger in IFTTT — not an action. In other words, you can only use the Echo in IFTTT to cause actions to occur, you cannot get IFTTT to make the Echo speak back to you or look up information (I hold out hope that this will be a future addition!).

To create a new recipe, as always, you head to the top right hand corner and click your username. Then click "Create":

Creating a new recipe

From there, search for the Amazon Alexa channel. It will also appear if you search for "echo", so you can find it in a range of ways!

Choosing the Echo trigger channel

From here, the trigger option chosen will differ depending on the recipe we want to create. Each recipe below will start from this point in the process.

Connecting the Echo to LIFX Light Bulbs

Whilst there is a LIFX skill you can install onto the Echo, it didn't work for me when I tried to use it. If you also have the same issue, you can use IFTTT to achieve the same results, just as we did within the Connecting LIFX Light Bulbs to the IoT Using IFTTT article here at SitePoint.

We want to trigger our lights via voice. To do this, we use the Echo trigger channels "Say a specific phrase" trigger:

Choosing the echo voice trigger

From here, we set up which phrase we want to use. As an initial test, we can put down "turn on my light" and then click "Create Trigger" (note — your phrase needs to be all lowercase for it to be accepted):

Setting the phrase

Continue reading %How to Empower the Amazon Echo with IFTTT%


by Patrick Catanzariti via SitePoint

Scheduled Backups for WordPress for Free in 5 Minutes

No matter how many times you read about it on the web, you just haven't got around to backup your WordPress website, despite all the hours you’ve put into it. There are tons of reasons for you not backing up - it’s too expensive, takes too long to setup, if your server gets hacked your backups might be lost as well, etc. - you get the picture. But hackers and server hardware issues won’t listen to you whining about how long you worked on your website, and once it gets hacked, it’s pretty much gone forever without backups.

And that’s why, you need to take action NOW. Setting up scheduled backups in WordPress can be surprisingly easy. What if I told you that there was a way to backup your website for free, with the backed-up files stored outside your server in a secure cloud environment, that can be setup in 5 minutes? You’re in luck. I present to you, the WordPress Backup to Dropbox (WPB2D) plugin.

Advantages and Disadvantages of WordPress Backup to Dropbox

Many WordPress experts might point out that there are many other more robust backup applications, as well as many powerful paid options. However, for most users, WPB2D is more than enough. The WPB2D plugin is great in that it's incredibly easy to setup and also very easy to use. I set it up on one of my WordPress sites 2 years ago, and it has never had an issue ever since. It’s great for setting up once, and just leaving it there. Here’s an image of the plugin in action:

Continue reading %Scheduled Backups for WordPress for Free in 5 Minutes%


by Ryan Chang via SitePoint

Building a Hacker News Reader with Lumen

In this tutorial, we’re going to build a reader for Hacker News. We will be using the Hacker News API and the Lumen framework to implement this.

The final output looks something like this:

Working Hacker News Reader

If you’re excited, let’s go ahead and jump right into it.

Installing and Configuring Lumen

The first thing that you need to do is to install Lumen. You can do so with the following command:

composer create-project laravel/lumen hnreader --prefer-dist

Create an .env file with the contents:

APP_DEBUG=true

APP_TITLE=HnReader

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=hnreader
DB_USERNAME=homestead
DB_PASSWORD=secret

APP_DEBUG allows us to turn on debugging in Lumen so that we can see the errors in the app. And the DB_* is for the database configuration. We will be using the MySQL database for storing the items that we will be getting from the Hacker News API. This way, we won’t need to make a separate HTTP request every time a user accesses the app. You will probably just leave the values for DB_CONNECTION, DB_HOST, DB_PORT as they are if you’re using Homestead Improved. Of course, we need to create the database, too.

mysql -u homestead -psecret
CREATE DATABASE hnreader;

Next, let’s open the bootstrap/app.php file and uncomment the following line:

Dotenv::load(__DIR__.'/../');

This specific line loads the configuration options from the .env file created earlier.

Also uncomment the following line so that you can use facades such as DB:

$app->withFacades();

Database

For this app, we’re only going to need one table for storing the items that we’ve fetched from the API. You can create the table by creating a new migration with the following command:

php artisan make:migration create_items_table

That will create a new migration in the database/migrations directory. Open the file and update the contents of the up and down method to the following:

public function up()
{
    Schema::create('items', function(Blueprint $table){
        $table->integer('id')->primary();
        $table->string('title');
        $table->text('description');
        $table->string('username');
        $table->char('item_type', 20);
        $table->string('url');
        $table->integer('time_stamp');
        $table->integer('score');
        $table->boolean('is_top');
        $table->boolean('is_show');
        $table->boolean('is_ask');
        $table->boolean('is_job');
        $table->boolean('is_new');
    });
}

public function down()
{
    Schema::drop('items');
}

What the up method does is create the items table.

Continue reading %Building a Hacker News Reader with Lumen%


by Wern Ancheta via SitePoint

How to Create a News Reader With React Native: Setup and News Item Component

A Quick Study of the Rails Directory Structure

Ruby on Rails is a full fledged web framework written in Ruby. It is one of the most famous web frameworks and makes getting started with development so easy. Today I would like to explain the default files and folders generated by Rails. Let's get started.

To create a new Rails app, all we have to do is run the following command:

rails new sample_app

The above command generates the directory structure that we're discussing today. It might change if you are using an older version of Rails. This article is based on the latest Rails version which, as of this writing, is 4.2.4. You can find the version installed in your system by typing this in the console

rails version
=> Rails 4.2.4

Continue reading %A Quick Study of the Rails Directory Structure%


by Vinoth via SitePoint

Condé Nast – End Of Year 2015

opl-small

Beautiful horizontal-scrolling One Pager showcasing the 2015 network highlights of media company Condé Nast. The Single Page website features really well integrated video among all the rich content that loads as you scroll.

by Rob Hope via One Page Love