Wednesday, February 24, 2016

This Week in Mobile Web Development (#96)

Read this on the Web

Mobile Web Weekly February 24, 2016   #96
Holly Schinsky recommends
Google has launched Accelerated Mobile Pages — People are beginning to see icons related to Google’s AMP (Accelerated Mobile Pages) project show up in their search results.
Search Engine Watch
Holly Schinsky recommends
Google Launches AMP Listings In Mobile Search Results, For Some
Search Engine Land
Brian Rinaldi recommends
A Responsive Guide to Type Sizing — Erik Jung discusses using a modular scale for typographic proportions.
Cloud Four Blog
This issue is sponsored by Hired.com
Apply to 3,000+ Jobs in 10 Minutes & 1 Application — Top companies apply to you on Hired. Get salary and equity upfront before interviewing.
Hired.com

Holly Schinsky recommends
12 Steps to a Faster App — Provide a better user experience for your web and mobile web app users by improving latency, rendering times and general performance.
Auth0 Blog
Peter Cooper recommends
WordPress Sites Now Support Google’s AMP To Make Mobile Pages Load Much Faster
TechCrunch
Brian Rinaldi recommends
Viewports visualisation app — A desktop app emulates the behavior of two viewports when you pan, zoom, and generally interact with them.
PPK
Brian Rinaldi recommends
okayNav: The world's okayest responsive navigation — okayNav is a jQuery plugin that progressively collapses links into an offscreen menu for responsive navigation.
VPenkov
Brian Rinaldi recommends
NativeScript 1.6 available now — Includes significant improvements on Android load time, support for percent-based layouts and native page transitions and much more.
NativeScript Blog
Brian Rinaldi recommends
The Ad Blocking Wars — An overview of the state of mobile ad blocking and its impact.
New York Times
Brian Rinaldi recommends
Cross Platform Image Manipulation in Nativescript Using WebView Canvas — How to use a new plugin, nativescript-canvas-interface, to manipulate images on a canvas in an Android and iOS app.
Shripal Soni
Holly Schinsky recommends
Ionic 2 Authentication: How to Secure Your Mobile App with JWT — Learn how to use JWT (JSON Web Token) authentication to secure your hybrid apps built with Ionic 2.
Auth0 Blog
Holly Schinsky recommends
PhoneGap serve command now supports your desktop browser — You can now test your PhoneGap apps more quickly and easily with just your desktop browser with the PhoneGap CLI serve command.
PhoneGap Blog
Holly Schinsky recommends
Mind the Gap: Supercharge your PhoneGap Workflow — A video from PhoneGap Day US with Eric Alli presenting tips on how to create a seamless development workflow.
PhoneGap Day US 2016
Holly Schinsky recommends
vscode-ionic1-snippets: Visual Studio Code Ionic1 Snippets — An extension for Visual Studio Code to add Ionic1 snippets for HTML, CSS, JavaScript, and ionicons.
Justin James
Holly Schinsky recommends
kinvey-ionic-starter — An Ionic starter template for the Kinvey mobile Backend as a Service (a Parse alternative).
Aaron K Saunders
Brian Rinaldi recommends
Mobile, desktop and website Apps with the same code — An example of using the same code to run an application across platforms - uses React Native for mobile.
Benoit Vallon
Job listing
Pluralsight Author - Mobile Tech Instructor (Freelance, Part-time) — Seeking skilled instructors to share their Mobile expertise with learners on a global scale. Authors work from home on their own schedule, are recognized experts, and earn completion payments and royalties. Please apply if you have a flair for teaching and helping others learn.
PLURALSIGHT

Curated by Brian Rinaldi and Holly Schinsky for Cooper Press.
Cooper Press is located at Office 30, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
Update your email address
or stop receiving MWW here


by via Mobile Web Weekly

Migrating Your Android or iOS App from Parse

This article was peer reviewed by Tim Severin and Adrian Sandu. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be!

Not since the shuttering of Google Reader has there been quite so many outcries of surprise and annoyance amongst tech fans. Facebook’s announcement that their popular developer service platform, Parse, will shut in a years time caused ripples of panic amongst developers who rely on it. It’s always been a bad idea to be too reliant on a centralized, commercial service as it may not always last for ever. Parse wont be the first or the last to close and it’s a good lesson to us all to be flexible.

But enough discussion, let’s get down to practical steps on what to do with your Parse powered application.

Continue reading %Migrating Your Android or iOS App from Parse%


by Chris Ward via SitePoint

Save 89% on a Lifetime Subscription to a Top-Rated VPN

Save 89% on a lifetime subscription to a top-rated VPN

When we’re looking for a service that protects our personal info and browsing activity, we want to make sure we’re choosing one that comes highly recommended. Case in point, proXPN’s VPN service, rated four stars by PC Mag. Get a lifetime subscription for $39.

This VPN service will give you unlimited traffic bandwidth as it encrypts your browsing, keeping your private information and online activity safe, even on public Wi-Fi. It’ll even automatically shut down sensitive programs if your VPN connection drops. All the meanwhile, it also gives you extra freedom when you’re browsing abroad—connect easily to geo-blocked content like Netflix and YouTube. Use proXPN VPN on up to four devices.

Save 89% on a lifetime subscription to proXPN—get it for $39 at SitePoint Shop.

Continue reading %Save 89% on a Lifetime Subscription to a Top-Rated VPN%


by SitePoint Offers via SitePoint

How much is your spare time worth?

opl-small

Real fun interactive One Pager that works out your hourly rate based on a bunch of online tests. The illustrations are great and transitions smooth. Lovely bit of marketing this by Finn that, at the end of the quiz, promotes outsourcing labour tasks to free up your valuable time. Smart.

by Rob Hope via One Page Love

A Smooth Refresher on Python's Functions

In Python, you may have come across things like file(), print(), open(), range(), etc. Those are called built-in functions. That is, functions already provided by the language itself which you can execute by referencing (calling) to them. But, what is a function anyway? This is what we are going to learn in this tutorial, the Python way!

Functions

Functions are composed of a set of instructions combined together to get some result (achieve some task), and are executed by calling them, namely by a function call. Results in Python can either be the output of some computation in the function or None. Those functions can be either built-in functions (mentioned above) or user-defined functions. Functions defined within classes are called methods.

Defining Functions

Now that we know what is meant by a function, let's see how we can define functions in Python. In order to do that, we use the def statement, which has the following syntax: 

The parameters in the function definition are optional, as some functions do not require parameters to be passed at the time of the function call. If more than one parameter is passed, the parameters are separated by commas, and they are bound to the arguments in the function that correspond to the parameters passed. The statements (function body) are executed when the function is called.

The return statement is an optional statement which serves as the exit point of the function where an expression could be returned to the caller, or if no expression is identified, it will be like returning a None value.

Examples

Let's go through some examples to grasp the idea of functions more. You will notice that functions save us from repeating ourselves, as they provide a block of reusable code to call whenever we want to perform some regular task we ought to perform.

Say that we would like to display the name of any employee entered in the system. This can look as follows:

As you can see, if we want to call a function, we simply identify the following:

  • function name (i.e. print_name)
  • parameters (i.e. employee_name)

If you type print_name(employee_name) before the function definition, Python will complain as follows:

So you should define the function before calling it.

Let's take another example. This time we will use lists. Assume we have the following list:

numbers_list = [1,2,3,4,5]

Let's say now we want to insert new numbers using this function:

Notice that the output of this Python script will be:

What can we conclude from this? We can conclude that the parameters are passed by reference. That is, the parameters in the called function are the same as the passed arguments (variable/identity) by the caller, as opposed to passed by value where the called function parameters are a copy of the caller passed arguments.

A Simple Calculator

Let's use our knowledge of functions to slightly build a more interesting application. Let's build a simple calculator. This calculator will allow the user to enter two numbers, and perform addition, subtraction, multiplication, and division on the two numbers.

Go ahead, try it out and see what output you get.

Lambda Functions

Lambda functions are anonymous functions Python creates at runtime using the lambda construct. So far, we have learned that functions are defined using the def statement. Lambda functions are, however, defined in a different manner. Let's take an example to clarify how Lambda functions work.

Say we want to write a function that returns the double value of the passed argument. Using the def statement, we would do the following:

The Lambda way of writing this function is as follows:

There are different ways you can use Lambda in. Check this tutorial for more information on Lambda functions.

As we can see, functions are considered an important feature in Python, allowing you to reuse code rather than reinventing the wheel.


by Abder-Rahman Ali via Envato Tuts+ Code

whoismrrobot.com

roboto-thumb

Geeky interactive terminal-style One Pager for all fans of the series, Mr. Robot.

by Rob Hope via One Page Love

How to Work With WordPress Metadata