Thursday, January 12, 2017

Getting Started with Vagrant on Windows

Vagrant is the hot new buzzword right now on the web, it seems like everyone must be using it.

If you don’t know, you’ll know Vagrant is a program to aid in creating virtual machines via a set of reusable options and configurations. Many people have shared their configurations and scripts via GitHub and elsewhere.

Vagrant is great if you want to spring up servers on-the-fly, to test programs, learn how to use Linux tools, or do stuff in a test environment before trying it on a production system. Do you want to learn to install the PHP Apache MySQL stack from scratch on a new server? Or play with setting up a cache server like Varnish in front of Apache? Even try your hand at Nginx? Vagrant makes things a bit simpler than using VirtualBox directly.

Vagrant logo

Let’s take a look at how to get Vagrant set up on Windows.

Installing the Megabits and Pieces

To get started, go ahead and install these tools:

Create Your Projects

Now that you have it all set up, you can start your first Vagrant project by creating a project folder, which will house the various configurations for each of your VMs. You’ll use the command line to run Vagrant commands from within these folders.

Create your first project folder and call it C:\vm\test\.

Tip: As a Windows user, you can quickly open a command prompt to your project by holding down shift and right-clicking the project folder, then choose “open command window here”.

Using Vagrant

The only commands we need to get servers up and running are vagrant init and vagrant up.

Open a command line and change directories to your test project folder. Then, type vagrant init and a new vagrant file will be created in the current directory. Open and read that file, there are lots of comments you can study. You can set shared folders between guest and host, turn on port forwarding, set the hostname, and more.

Browse the Vagrant Cloud for user-created base boxes you can use. For this example, we’ll use “ubuntu/trusty64” which is the “official” base box for Ubuntu Server 14.04 LTS (Trusty Tahr). Delete the Vagrant file you just created, and type the following:

Continue reading %Getting Started with Vagrant on Windows%


by Zack Wallace via SitePoint

Fun Web Animation Effects with KUTE.js

KUTE.js Animation Library

My aim in this article is to introduce KUTE.js, an open-source, free and feature-rich JavaScript animation engine by thednp and dalisoft.

This is the second article in the series Beyond CSS: Dynamic DOM Animation Libraries. If you'd like to read more about how best to use animation on the web or when you could consider using a JavaScript animation library instead of CSS-only animation, the first article in the series, Animating the DOM with Anime.js, contains some useful tips and resources.

What Can You Do with KUTE.js?

KUTE.js makes available a core animation engine and a number of plugins to animate specific kinds of properties. This modular architecture helps to keep this library performant and highly flexible.

What You can Animate with the KUTE.js Core Engine

Just using the core engine alone, you can animate:

  • Opacity property
  • All 2D transform properties, except for matrix, double axis skew and double axis scale
  • All 3D transform properties except for matrix3d and rotate3d
  • The following box model properties: width, height, top and left
  • The color and backgroundColor properties
  • Scrolling animation, both on the window object and on any scrollable DOM element

What You Can Animate with the KUTE.js CSS Plugin

Using the CSS plugin the number of possibilities for animation go up. Here's what you can do:

  • Animate all box model properties like margin, padding, borderWidth, etc.
  • Animate the borderRadius property
  • Animate text properties like fontSize, lineHeight, letterSpacing, wordSpacing, etc.
  • Animate color properties like borderColor and outlineColor
  • Animate the clip property, now deprecated in CSS.
  • Animate the backgroundPosition property.

What You Can Animate with the KUTE.js SVG Plugin

SVG (Scalable Vector Graphics) illustrations and icons are all over the web. This is not by chance. SVG graphics look great whatever the screen resolution, being written in a markup language makes them more accessible, and when properly optimized, can have a small filesize.

One awesome thing you can do with an SVG graphic is animating different parts of it, and KUTE.js offers a great plugin that lets you achieve sophisticated animations without much effort.

In particular, the SVG plugin of KUTE.js lets you :

  • Morph SVG paths
  • Animate the SVG stroke attribute
  • Animate SVG transforms in a reliable, cross-browser way

What You Can Animate with the KUTE.js Attributes Plugin

With the Attributes plugin, KUTE.js lets you animate any numeric presentation attribute, with or without a unit of measurement like px, em, etc. This plugin, in conjunction with the SVG plugin, makes possible the creation of some cool animations.

What You Can Animate with the KUTE.js Text Plugin

Extending KUTE.js with the Text plugin will let you animate text elements in two ways:

  • Increasing and decreasing the string representation of a number
  • Writing a string a character at a time.

Visit the dedicated page on the KUTE.js website for full details about its capabilities:

Continue reading %Fun Web Animation Effects with KUTE.js%


by Maria Antonietta Perna via SitePoint

Prettier – Opinionated JavaScript Formatter

Prettier is an opinionated JavaScript formatter inspired by refmt with advanced support for language features from ES2017, JSX, and Flow. 

Prettier gets rid of all original styling and guarantees consistency by parsing JavaScript into an AST and pretty-printing the AST.


by via jQuery-Plugins.net RSS Feed

This week's JavaScript news, issue 317

This week's JavaScript newsRead this e-mail on the Web
JavaScript Weekly
Issue 317 — January 12, 2017
A new JavaScript code formatter from James Long that supports ES2017, JSX and Flow. He explains it here, along with a live demo, and here’s the repo.
James Long

Jeremy Likness gives an overview of what the Redux framework is, what it helps with, and how to build a web application with Redux and Angular 2.
Telerik Developer Network

Tab Atkins’ EIC mnemonic for remembering callback arguments is fantastic.
Jordan Harband

Sencha, Inc
React can be used to build user interfaces (UIs) for web apps, but React developers have to provide the components to build the UI. Fortunately, there's a better way. Learn how React developers can now use Sencha’s powerful Ext JS components in their React apps, using the new Ext JS Reactor.
Sencha, Inc   Sponsor

If you’re lost when it comes to building and using Web Components, Skate.js and this tutorial could help.
Hector Leon Zarco Garcia

A look at dealing with modules that need to deal with differences between environments.
Nolan Lawson

Todd guides you through creating some advanced Angular 2 components that rebuild Tesla’s battery range calculator, compile it AoT, and deploy it on GitHub pages.
Todd Motto

ArrayBuffers provide efficient access to and storage of binary data, but they behave in slightly different ways depending on how you access them.
Mozilla Hacks

Jobs Supported by Hired.com

  • Senior JavaScript Engineer at Zalando Tech in BerlinZalando is the leading fashion platform in Europe. Work in one of our 200+ autonomous engineering teams and build the technologies and products that connect all parts of the fashion ecosystem. Zalando SE
  • Front End Engineer at EDITED (London)At EDITED you'll collaborate with the product team to refine our web app built with React, Redux and Radium while working alongside fashion experts to make a direct impact on how the world's biggest brands operate. EDITED
  • Senior Frontend EngineerCredit Karma is seeking a Front-End Engineer to join our SF team to help build the next generation of our web platform with React and Node. Drive client-side technical direction, build scalable web apps and deliver ground-breaking user experiences. Credit Karma

Can't find the right job? Want companies to apply to you? Try Hired.com.

In Brief

A Look at the 'import()' ES Proposal news
Currently at stage 2, it enables the dynamic loading of modules.
Dr. Axel Rauschmayer

The Lead Developer 1-day conference for Tech Leads. 21 Feb, New York. news
Programmed to help team leads stay ahead of new technologies and develop themselves as managers.
White October Events  Sponsor

How to Build and Use a WebAssembly Module tutorial
Still very cutting edge and experimental.
Hector Leon Zarco Garcia

How to Use jQuery Plugins in the React Ecosystem tutorial
Kaloyan Kosev

An Introduction To Functional Front-Ends with Inferno tutorial
A. Sharif

Testing Angular Directives with Custom Matchers tutorial
Thomas Burleson

React, Relay, GraphQL, Async, Redux and D3 course
Get a 2-week free trial to dozens of JavaScript and iOS workshops, including our upcoming live interactive events.
Forward Courses  Sponsor

Binary Operations in JavaScript video
Gonçalo Morais

Speed Programming a Snake Game with JavaScript video
Jamie Nichols

Ember Engines at Scale video
Hear how the British Gas team began decomposing their app into engines.
Paul Abraham

PhoneGap Apps with Vue.js? Yes Please opinion
Holly Schinsky

React or Vue: Which JavaScript UI Library Should You Be Using? opinion
A reasonable comparison article.
JS Dojo

Lebab: Turn Your ES5 Code into Readable ES6 tools
Live demo.

Express Starter Kit with ES2017+ Support, Testing, Linting, & Coverage tools
Vassilis Mastorostergios

Freezer: A Tree Data Structure That Emits Events on Updates code

micromustache: A Small, Optimized Mustache Implementation code
Faster, smaller, and a drop-in replacement for MustacheJS.
Alex Ewerlöf

Siema: A Lightweight Web Carousel with No Dependencies code
Pawel Grzybek

iTyped: Simple JavaScript Animated Typing Effect with No Dependencies code
Luis Vinicius

Mermaid: Generate Diagrams and Flowcharts From Text code
Converts text to diagrams and flowcharts (a la Markdown). GitHub repo.
Knut Sveidqvist

Structure: A Simple Schema/Attributes Library code
Talysson de Oliveira Cassiano

Vuelidate: Simple Model-Based Validation for Vue.js code

Flexdatalist: jQuery Autocomplete with 'datalist' Element Support code
Sérgio Dinis Lopes

Curated by Peter Cooper and published by Cooperpress.

Like this? You may also enjoy: FrontEnd Focus : Node Weekly : React Status

Stop getting JavaScript Weekly : Change email address : Read this issue on the Web

© Cooperpress Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via JavaScript Weekly

New Code eBooks Available for Subscribers

Scrum Rituals: Sprint Planning

The following is an extract from our book, Scrum: Novice to Ninja, written by M. David Green. Copies are sold in stores worldwide, or you can buy it in ebook form here. The ritual that marks the beginning of each sprint is called sprint planning. Sprint planning is hosted by the scrum master, but the […]

Continue reading %Scrum Rituals: Sprint Planning%


by M. David Green via SitePoint

MailChimp 2016 Annual Report

Another awesome Annual Report One Pager by MailChimp. The super long scrolling Single Page site features tons of fun illustrations, animations and stats to celebrate a monster 2016.

by Rob Hope via One Page Love