Wednesday, October 31, 2018

Yo! Halloween 🎃

 

In the Yo! Season 1 finale I cover gruesome design news, dev tricks, Halloween facts, freebies beats, laughs and more.


What is Yo!? Yo! is a weekly show on my YouTube channel covering the latest design and development news. Each story is linked below but if you want them sent straight to your inbox, sign up to the Yo! newsletter.

Episode links:

Full Review | Direct Link


by Rob Hope @robhope via One Page Love

Link Hover Style 47

The post Link Hover Style 47 appeared first on Best jQuery.


by Admin via Best jQuery

Bootstrap Vertical Tab 15

The post Bootstrap Vertical Tab 15 appeared first on Best jQuery.


by Admin via Best jQuery

Facebook now has 2.27 Billion Active Monthly Users, 1.49 Billion Daily Users

In the past two years, Facebook had a very tough time because of several scandals including the Cambridge Analytica data privacy scandal and the recent data breach where 50 million Facebook users' private data was exposed. Still, Facebook has been growing slowly and steadily. In the third quarter...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Sahir via Digital Information World

12 Best WooCommerce Plugins for Your Online Store

Create a WordPress Image Gallery: Code the Plugin

An Annotated webpack 4 Config for Frontend Development

#364 — October 31, 2018

Read on the Web

Frontend Focus

Splicing HTML’s DNA With CSS Attribute Selectors — Even confident CSS developers often seem to steer away from attribute selectors. This excellent primer introduces how they work, plus some interesting use cases.

John Rhea

Google Releases reCAPTCHA V3: The New Way to Stop Bots — Instead of just showing a CAPTCHA, reCAPTCHA v3 gives incoming visitors a risk score and lets you take custom actions based on that score.

Google

“Managing” Your Developers Isn’t as Effective as It Appears — No one wants to be the heavy-handed, nit-picking, by-the-book manager. Yet that's what most management books teach. What if you had the tools to lead with inspiration instead of micromanaging your team? Stop managing, and start leading, today.

Tech Lead Training sponsor

You Might Not Need JavaScript — JavaScript is great, yet you can build so many functional UI components without it. Here are some common web components built with HTML and CSS/SCSS.

Una Kravets

An Annotated webpack 4 Config for Frontend Development — As web development becomes more complex, we need tooling to help us build modern websites. Here’s a very thorough example of a real-world production webpack 4 config.

Andrew Welch

Web Performance 101 — An easily accessible, diagram and code heavy primer to making a site or webapp faster by optimizing assets like JS, CSS, images and fonts.

Ivan Akulov

The CSS Working Group At TPAC: What’s New In CSS? — Last week, Rachel Andrew attended the CSS Working Group meeting at W3C TPAC, and rounds up some of the discussions in this post.

Rachel Andrew

WebAssembly Threads: Ready to Try in Chrome 70 — WebAssembly thread support, which allows for real multi-threaded web apps, has shipped in Chrome 70 under an origin-trial.

Google Developers

💻 Jobs

ReactJS Developer at Komoot (Remote) — Millions get inspired and plan adventures with our apps. To help us make Komoot the place to go to plan outdoor adventures, we’re looking for an ambitious React developer to join our team.

Komoot

Senior UI Engineer - Sailthru (New York) — Join our team in NYC building next gen apps that help marketers deliver the right message to the right person at the right time.

Sailthru

Join Our Career Marketplace & Get Matched With A Job You Love — Through Hired, software engineers have transparency into salary offers, competing opportunities, and job details.

Hired

📘 Tutorials & Opinion

Learn CSS Flexbox by Building a Photo Card Component — A good practical example to help you learn the fundamentals of Flexbox.

Ayo Isaiah

Concise Media Queries with CSS Grid — Focuses on the use of grid-template-areas to quickly create responsive layouts with a single rule inside a media query.

Stephen Lindberg

Create a Serverless Powered API in 10 Minutes — Use Cloudflare Workers to create and deploy a serverless API to 150+ data centers.

Cloudflare Workers sponsor

CSS Previous Sibling Selectors and How to Fake Them — CSS previous sibling selectors don’t exist, but they can be ‘faked’.

Facundo Corradini

Using Dark Mode in CSS with macOS Mojave — The latest Safari Tech Preview lets you use different CSS properties depending on the underlying color scheme of the OS.

Paul Miller

You're Using the em Element Wrong — Semantically, em is for stress emphasis, whereas i is still appropriate for alternate voice or mood.

Facundo Corradini

Creating a Simple Form with CSS Grid

Zell Liew

A Practical Introduction to MongoDB Views

Studio 3T sponsor

Creating Grid Tile Layouts with auto-fit and minmax

Dave Geddes

🔧 Code and Tools

WebAIM: Link Contrast Checker — Check the contrast of your text and links and get a score.

Center for Persons with Disabilities

IronDB: A 'Relentless' Key-Value Store for the Browser — Relentless in the sense that it redundantly stores data in multiple browser stores (i.e. in cookies, localStorage, sessionStorage and IndexedDB) and tries to ‘self heal’ upon data loss.

Ansgar Grunseid

(ZURB) Foundation 6.5.0 Released — After 900 commits versions 6.5.0 of this popular framework fixes over 100 bugs fixed, offers more customization, enhanced accessiblility and more.

Nicolas Coden

Shop Like a Developer – Discover and Experiment with Hot New Services 🔥

Manifold sponsor

simple-keyboard: A Slick Virtual JavaScript Keyboard for the Web — Very smooth and easy to customize.

Francisco Hodge

simplebar: A Vanilla JavaScript Library for Custom Scrollbars

Adrien Denat


by via Frontend Focus

39 Surprising Facts About The World’s Favourite Brands (From Tech, Entertainment, Business and Other Industries)

We live in a day and age where everything is dictated by consumer culture. Consumers can attain the absolute pinnacle of comfort by buying the right products from the right companies. However, the average consumer is rather uninformed about the companies that they buy from. In a lot of ways this is...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Irfan Ahmad via Digital Information World

Will the new iPad revive the Apple's history of success?

After the successful iPhone launch in September, Apple inc. hosted another event on Tuesday to display the rest of its product line-up. Branded as “There’s more in the making”, the event held in New York City, unveiled several new devices including the MacBook Air and iPad Pro. Although the iPads...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Saima Salim via Digital Information World

Statically Compiled Go on Alibaba Cloud Container Service

The third prize of the Alibaba Cloud competition goes to David Banham. His winning entry is a succinct tutorial on statically compiling a Go program, and using Docker to containerize and distribute it.

Alibaba Cloud’s Container Service is a great example of how Docker and Kubernetes are revolutionising the cloud landscape. The curmudgeons will rail that it’s all still just some software running on someone else’s computer, but the transformative difference is that k8s and Docker provide what is effectively a platform-agnostic management API. If you build your DevOps pipelines against k8s you have the lowest possible switching friction between AWS, Google Cloud, Azure and Alibaba. The closer we can get to the dream of write once, run anywhere, the better!

Another tool I love for enhancing software portability is the Go language. Cross compilation in Go is as easy as falling off a log. I develop software on my Linux laptop and in the blink of an eye I can have binaries built for Windows, OSX, WASM, etc! Here’s the Makefile snippet I use to do it:

name = demo

PLATFORMS := linux/amd64 windows/amd64 linux/arm darwin/amd64

temp = $(subst /, ,$@)
os = $(word 1, $(temp))
arch = $(word 2, $(temp))

release:

make -l inner_release

inner_release: $(PLATFORMS)

$(PLATFORMS):
@-mkdir -p ../web/api/clients/$(os)-$(arch)
@-rm ../web/api/clients/$(os)-$(arch)/*
GOOS=$(os) GOARCH=$(arch) go build -o '../web/api/clients/$(os)-$(arch)/$(name) .
@chmod +x ../web/api/clients/$(os)-$(arch)/$(name)
@if [ $(os) = windows ]; then mv ../web/api/clients/$(os)-$(arch)/$(name) ../web/api/clients/$(os)-$(arch)/$(name).exe; fi
zip --junk-paths ../web/api/clients/$(os)-$(arch)/$(name)$(os)-$(arch).zip ../web/api/clients/$(os)-$(arch)/*
@if [ $(os) = windows ]; then cp ../web/api/clients/$(os)-$(arch)/$(name).exe ../web/api/clients/$(os)-$(arch)/$(name); fi

Neat! That will get you a tidy little binary that will run on your target operating systems. Even that is overkill if you’re targeting a Docker host like Cloud Container Service. All you need to do there is just GOOS=linux GOARCH=amd64 go build and you’re done! Then, you just need to choose your favorite Linux distribution and build that into the Dockerfile.

What if we wanted to simplify our lives even further, though? What if we could do away with the Linux distribution entirely?

Go supports the compilation of statically linked binaries. That means we can write code that doesn’t rely on any external DLLs at all. Observe this magic Dockerfile:

The post Statically Compiled Go on Alibaba Cloud Container Service appeared first on SitePoint.


by David Banham via SitePoint

15 Best Swift App Templates

The Future Trends of eCommerce (infographic)

Are you working in eCommerce industry and want to know the future trends of online shopping? What is the scope of eCommerce and what are the guidelines that will help in leading a successful eCommerce business? Are you planning to invest in eCommerce or already own the eCommerce site then you are...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Amjad Khan via Digital Information World

Internet Data Breaches Realm: 20+ Fascinating Cyber Security Facts (infographic)

Cybercrime is on the rise, mostly because of the fact that we are becoming so dependent on the internet and are performing so many essential tasks using this tool. Cybercrime results in financial loss, emotional distress and is just generally a nuisance that anyone would want to avoid, and if you...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Irfan Ahmad via Digital Information World

How to Combine Facebook Ads and Email Marketing for Better Conversions

Do you want an effective way to get more leads? Wondering how to nurture leads into becoming customers? In this article, you’ll discover how to use Facebook ads with email marketing to improve your conversions. Why Your Business Needs Both Facebook Ads and Email Marketing For as long as I can remember, marketers have hailed [...]

The post How to Combine Facebook Ads and Email Marketing for Better Conversions appeared first on Social Media Examiner.


by Rand Owens via Social Media Examiner

Femme & Fierce

She is fire and ice, soft but strong. She is a badass with a good heart.
by via Awwwards - Sites of the day

Content marketers rejoice! Videos uploaded on Vimeo can be published to LinkedIn with Single Click

Video content can now be published directly from Vimeo to company pages on LinkedIn, as announced recently by Vimeo. With a single click, creators will be able to share videos to their LinkedIn company pages using "Publish to Social" feature on Vimeo. "As a creator-first platform, we know how much...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Sahir via Digital Information World

Tuesday, October 30, 2018

Reynders Label Printing

The new corporate Reynders site : International label printing company, located in Belgium, France, Poland and India.


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

Nidheesh Kavalan – Visual Designer

I am a multi-disciplinary designer based in India, my biggest passion is to create digital design and I always spend time learning new software & techniques.


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

Niks.One

Digital Art Director, Designer & Photographer.


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

Sunlight Solar Inc.

We are a local Southern California Solar Company, helping homeowners with affordable means to lower their electric bill and most important lower carbon emissions and protect the environment.


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

Freelance Web Developer in Brighton

Offering a wide range of web and app development services, such as bespoke WordPress sites, eCommerce platforms, iOS and Android apps, and powerful .NET sites


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

Preloader Style 211

The post Preloader Style 211 appeared first on Best jQuery.


by Admin via Best jQuery

Service Box 98

The post Service Box 98 appeared first on Best jQuery.


by Admin via Best jQuery

Evelyn

‘Evelyn’ is a free Landing Page HTML template by Cruip. The design really is stunning for a freebie and features an intro image/video placeholder, client logos, product feature highlights and a pricing table.

Full Review | Direct Link


by Rob Hope @robhope via One Page Love

What's New in Core ML 2?

Building a WordPress Plugin with Vue

In this tutorial, we’ll learn how to integrate Vue.js with a WordPress plugin to provide a modern UI experience to our WordPress users.

Vue.js is a very popular progressive JavaScript library for building modern and rich user interfaces similar to Angular and React in terms of popularity, performance and component-based architecture. We’ll dive into the entire process of building a very simple WordPress plugin with a Vue interface that interacts with the WordPress REST API through the JavaScript Fetch API.

We’ll create a shortcode that will allow us to add a latest published posts widget in our WordPress website. The UI of the widget is a Vue app which fetches the latest published posts via the /wp-json/wp/v2/posts?filter[orderby]=date WP-API endpoint.

This tutorial assumes some familiarity with Vue.js. We’ll see how to create a Vue instance, use life-cycle hooks like mounted(), and also the JavaScript Fetch API to interact with the WordPress REST API.

Creating a WordPress Plugin

In this section, we’ll see how to create a WordPress plugin that registers a shortcode in a few steps.

Create a Folder in wp-content/plugins

Let’s start by creating the back-end part of our plugin. Plugins live inside the wp-content/plugins folder. Navigate to this folder inside your WordPress installation folder and create a sub-folder for your plugin. Let’s call it vueplugin:

cd /var/www/html/wp-content/plugins
mkdir vueplugin

Inside your plugin folder, create a vueplugin.php file and add the initial content:

<?php
/*
Plugin Name: Latest Posts
Description: Latest posts shortcode
Version: 1.0
*/

These comments are used as meta information for the plugin. In our case, we simply provide a plugin name, description and version.

If you visit the plugins page in the admin interface you should be able to see your plugin listed:

Our new plugin listed on the plugins page

Creating a Shortcode

Shortcodes are used via WordPress plugins to enable users to add content to posts and pages. To register a shortcode you need to add the following minimal code in your plugin file:

function handle_shortcode() {
    return 'My Latest Posts Widget';
}
add_shortcode('latestPosts', 'handle_shortcode');

We’re registering a shortcode named latestPosts.

WordPress provides the built-in add_shortcode() function to create the shortcode in your WordPress plugin. The function takes a name as the first parameter and the handler function that processes your shortcode logic and returns an output as a second parameter.

At this point, we’re only returning a static string from our shortcode, but shortcodes are more useful when used to insert dynamic content.

Now, let’s activate the plugin from the admin interface by clicking on the Activate link below the plugin name:

Activating the plugin

You can use a shortcode by enclosing it in square brackets — that is, [SHORTCODE_NAME]. The text inside the brackets is the name we passed as the first parameter to the add_shortcode() function. It gets replaced by the output returned by the PHP function passed as the second parameter.

To test if our shortcode is successfully registered, we can create a new post and add [latestPosts] in the post content:

Testing the shortcode

You should see My Latest Posts Widget sentence rendered:

The test sentence rendered

Now, instead of displaying the static My Latest Posts Widget string, let’s display the latest posts using Vue.js.

The post Building a WordPress Plugin with Vue appeared first on SitePoint.


by Ahmed Bouchefra via SitePoint

Building a Serverless REST API with Function Compute and MongoDB

We received a lot of great entries in our recent competition to find the best tip for making the most out of Alibaba Cloud services. It was a fun but challenging task for our judges to pick the winners amongst so many helpful and interesting entries. But alas after fiery deliberations and heated debates they've decided that the second prize of the competition goes to Nhi Nam Ha. His winning tip is a part of a series on serverless app architecture on Alibaba Cloud, and it covers several Alibaba products.

This tutorial will show you how to deploy a MongoDB database on Alibaba Cloud and use Function Compute to develop a back-end API system to interact with the database.

Overview of NoSQL and MongoDB

Relational databases have been selected as the primary system to manage data in software development for a long time. Its ACID principals promote the data persistency, transaction integrity and concurrency control. Over the last few years, NoSQL (Not only SQL) has become popular. This model solves the impedance mismatch between the relational data structures (tables, rows, fields) and the in-memory data structures of the application (objects). Most importantly, NoSQL is designed to scale horizontally which makes it an excellent choice for modern web applications.

NoSQL could be categorized into 4 groups:

  • Key-Value
  • Document
  • Column family
  • Graph

MongoDB is the most popular system within the document database group. As defined on mongodb.com,

A record in MongoDB is a document, which is a data structure composed of field and value pairs. MongoDB documents are similar to JSON objects. The values of fields may include other documents, arrays, and arrays of documents.

Alibaba Cloud ApsaraDB for MongoDB

MongoDB databases can be deployed on Alibaba Cloud via its ApsaraDB for MongoDB service. Users can select among 3 pricing schemes:

  • Subscription (Replica Set)
  • PAYG (Pay-As-You-Go) (Replica Set)
  • PAYG (Sharding)

Replication and sharding refers to the data distribution models:

  • Replication copies data across multiple servers. The same piece of data is stored in different places. ApsaraDB for MongoDB uses a 3-server replica set. Replication may help with horizontal scaling of reads.
  • Sharding distributes data across multiple machines so different machine contains different subset of data. This model allows for horizontal scaling of writes.

Create an Instance

In the Alibaba Cloud console, click on Products and you will see ApsaraDB for MongoDB under the ApsaraDB group. Alternatively, you can use the search box to filter the desired service.

Select the pricing scheme, the region, the server specification, and set a password for your database. Alibaba Cloud will tell you how much the service cost you based on what you chose.

More info about the instance parameters is here.

Note: if you are using a free trial account, remember to select a subscription instance. PAYG instances do not include in the trial program.

Set IP Whitelists

To ensure database security Alibaba Cloud automatically block all access to the database. You have to specify IP addresses in the whitelist to gain access to the target instance.

ip

Connection String

After you set your IP whitelist, click on “Database Connection” to see the connection parameters

connection

Use this connection string to connect to the database in your Node.js code.

Function Compute

Function Compute lets you run code without provisioning or managing servers. This service prepares computing resources for you and runs your codes on your behalf elastically and reliably. You only pay for resources actually consumed when running the codes. If your code isn’t executed, you don’t pay.

Function Compute runs your code in response to events. When the event source service triggers an event, the associated function is automatically called to process the event.

From the Alibaba Cloud console, select Function Compute and click on the “+” icon to create a new service

1

In the newly created service, click on the “+” icon to create a new function. You will go through a multi-step wizard to select options for your function.

For Function Template, select “Empty Function”

2

In the “Configure Triggers” step, select “HTTP Trigger” and give it a name. Other settings are as the image below

trigger

In the “Configure Function Settings” step, set a name for your function and select “nodejs6” as runtime

4

Click “Next” in the last two steps to finish the wizard and create the fucntion.

Program Your Function

Click on the function you have just created and click on the “Code” tab. This is where you provide your code for the function to run

code

Use the connection string from your MongoDB server.

Also in this screen you can view the HTTP trigger that will invoke your function. You can also run the trigger to test you function here.

run

Summary

In this tutorial we have learnt about NoSQL database with MongoDB as a popular example. Alibaba Cloud provides its ApsaraDB for MongoDB service to those who want to run MongoDB servers on its cloud. The tutorial then moves to discuss the Function Compute service as a new way to build your application following the emerging Serverless architecture. It shows an example of a Node.js function triggered by an HTTP request to connect to the MongoDB database and perform an “insert” command.

The post Building a Serverless REST API with Function Compute and MongoDB appeared first on SitePoint.


by Nhi Nam Ha via SitePoint