Tuesday, February 16, 2016

WordPress Tags Explained

By default there are two features in WordPress which help us to sort our content: categories and tags. Some plugins and themes add their own taxonomies but these two are the most commonly used, as everyone has them.

But some users don’t know why we have both of these. After all, categories are fine to sort posts, so a second way to sort them can seem useless. But it’s not the case.

In this article, we will see why WordPress tags are useful. Right after, as you’ll surely want to use them, I’ll show you how to add, edit and delete tags. We’ll finish by covering the default widget WordPress provides to display tags.

If you’re not familiar with how categories are used in WordPress you can refer to my article WordPress Categories Explained.

Are Tags Really Useful?

I sometimes encounter people who ask if tags can be useful, and how to use them. As a blogger I write several articles per day so I know that tags can be really useful. Now it's time for me to show you exactly how useful they can be.

Tags can complete the sorting you do with categories. However, they aren’t subcategories, and suggesting that they're subcategories is wrong (you can already create subcategories with the categories system).

Continue reading %WordPress Tags Explained%


by Jérémy Heleine via SitePoint

Remote Debugging for Front-End Developers

Front-end development used to be (kind of) easy. You could install a bunch of browsers on a couple of different computers / operating systems, physical or virtual, and use the developer tools built in almost every browser to solve compatibility problems, or work around different implementations of web standards. This is no longer the case, not since cellular networks became faster, phones became smarter and light “tablet” devices offered yet another way to connect people to the internet from wherever they are. Debugging in these (mostly) mobile devices is a different kind of game, and the fact that more than a dozen different mobile browsers exist is not making the job any easier.

Weinre

WEb INspector REmote was built to enable remote inspection and debugging of web pages across different devices. It’s a useful tool, especialy when you need to debug a ”UIWebView” or Safari on iOS while developing on Linux or Windows. weinre reuses the user interface code from the Web Inspector project at WebKit so most front-end developers should already be familiar with the toolbox.

Installation

Installing weinre is documented at the official site. It is a node.js module, so you will have to install that first. On Mac OSX and Linux, after installing Node.js, installation is as simple as running:

[code language="bash"]
sudo npm -g install weinre
[/code]

The documentation is not quite as clear on how to use weinre on Windows, so I will provide a bit more information on the Windows side of the process. The first thing you should know is your IP address, because visiting the pages on localhost or 127.0.0.1 won’t do. You can find out your IP using ifconfig on Linux or Mac OS and ipconfig on Windows. A static IP address would be ideal for developers using weinre, otherwise you may have to discover your IP every time you boot your computer! How to obtain a specific IP address from your local network is beyond the scope of this article, but here is a guide for Windows, a guide for Mac OSX and one for Ubuntu.

You will then need a HTTP server, since you cannot load HTML files on a mobile device (which is why you have to know the IP address of your computer!). You can use node.js, Apache, IIS, or a static site generator like Middleman or Jekyll — whatever suits your workflow best. There is also a RubyGem that adds a simple helper method to Middleman. I will use Apache, and serve the following -not particularly interesting- static HTML file, with just enough styles to have something to remotely inspect:

[code language="html"]
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>WEb INspector REmote</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/foundation.min.css">

<style>
.flex-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}

.flex-box {
-webkit-box-flex: 1;
-webkit-flex: 1 1 30em;
-ms-flex: 1 1 30em;
flex: 1 1 30em;
}
</style>
</head>

<body>

<div class="wrapper">
<div class="row">
<div class="large-10 large-offset-1 column">
<h1>Remote Debugging for Front-end Developers</h1>

<div class="flex-wrapper">
<div class="flex-box">
<p>Front-end development used to be (kind of) easy.
One could easily install a bunch of browsers on a couple
of different computers / operating systems, physical
or virtual, and use the developer tools built in almost
every browser to solve compatibility problems, or work
around different implementations of web standards.
This is no longer the case, not since cellular networks
became faster, phones became smarter and light “tablet”
devices offered a new way to connect people to the internet
from wherever they are. Debugging in these (mostly)
mobile devices is a different kind of game, and the fact
that more than a dozen different mobile browsers
exist is not making the job any easier.</p>
</div>
<div class="flex-box">
<blockquote cite="http://ift.tt/1SvNF3O;
<p>weinre is WEb INspector REmote. Pronounced like
the word “winery”. Or maybe like the word “weiner”. Who
knows, really.</p>
</blockquote>
<p>WEb INspector REmote was built to enable remote inspection
and debugging of web pages across different devices. It’s a
useful tool, especially when you need to debug a ”UIWebView”
or Safari on iOS while developing on Linux or Windows. weinre
*reuses the user interface code from the Web Inspector project
at WebKit* so most front-end developers should already be
familiar with the toolbox.</p>
</div>
</div>
</div>
</div>
</div>

</body>
</html>
[/code]

Continue reading %Remote Debugging for Front-End Developers%


by Panayiotis Velisarakos via SitePoint

Creating an Imgur App with NativeScript

In this tutorial you will create a mobile app for the image sharing service, Imgur, using NativeScript. I’ll assume this is your first NativeScript app, so will start with the basics.

Here’s how the final application will look:

imgur clone final output

Prerequisites

NativeScript has all the major operating systems covered in their docs, so head to the relevant link to get setup:

Note: On Linux and Windows you can only deploy to Android.

Continue reading %Creating an Imgur App with NativeScript%


by Wern Ancheta via SitePoint

Leo’s Red Carpet Rampage

opl-small

Hilarious arcade-themed One Pager that hosts Leo’s Red Carpet Rampage, a game where you race down the red carpet on a quest for Leonardo DiCaprio's ultimate award. Smart bit of marketing this by The Line digital agency in London.

by Rob Hope via One Page Love

Collaborate with Other Coders with 3 Years of Codeanywhere

Collaborate with other coders with 3 years of Codeanywhere

It’s used by over half a million developers from companies like Accenture, Salesforce, CNN, and Reuters. It allows you to code in 75 programming languages. And it’s only $59 for three years of access if you’re a SitePoint reader. Get a three-year freelancer subscription to Codeanywhere for 76% off at SitePoint Shop.

Codeanywhere is a development environment that makes it easy to collaborate on projects in 75+ programming languages. And true to its name, you can do it anywhere—start, pick up, or wrap up a project on your browser, phone, or tablet and your edits will come with you. Another reason developers flock to Codeanywhere? It makes it easy to collaborate. Share your code with a friend, pair program in real time with as many collaborators as you want, a single file or an entire project with others.

Start coding anywhere. Get a three-year freelancer subscription to Codeanywhere for 76% off at SitePoint Shop.

Continue reading %Collaborate with Other Coders with 3 Years of Codeanywhere%


by SitePoint Offers via SitePoint

Exploring WordPress Managers: Jetpack & InfiniteWP

Improving the Performance of Your Rails App With Eager Loading