…Using the Streaming API requires a persistent, keep-alive connection between your web server and Twitter. This type of implementation may be unfamiliar to many PHP developers. As soon as tweets come in, Twitter notifies your server in real time, allowing you to store them into your database without the delay…
…using modern tooling such as the Chrome DevTools.In part 1, you'll get a introductory look at the various panels in the DevTools and what workflows they're suitable for. There'll also be a focus on writing and executing JavaScript code through the browser rather than a code editor. 1. What Are Browser DevTools?Developer Tools…
…using AngularJS and Firebase to create a simple web application from scratch. It will be a simple blogging application where the user can sign in or sign up and publish a blog post.This tutorial assumes you have basic knowledge of AngularJS, but it shouldn't be tough to pick up the…
…using a framework is the speed at which you're able to assemble functionality. Sometimes, people will refer to this as rapid prototyping, but WordPress frameworks have matured to a point such that you can often get away with creating full on interfaces, sites, and applications - not just prototypes - when working…
…using the DevTools. In part 2, we'll look at debugging JavaScript and adopting a workflow such that solving JavaScript errors and diagnosing problems becomes more efficient. Debugging JavaScript Using the DevToolsDebugger KeywordYou can use the debugger keyword directly in your code to invoke the debugging capabilities (if any) of the JavaScript…
…using the two simple lines below: <?php remove_all_filters( 'comment_flood_filter' ); add_filter( 'comment_flood_filter', '__return_false', 10, 3 ); ?> Notice the remove_all_filters() function? As its name suggests, it removes all filtering functions from a filter hook. Changing the Items at the "At a Glance" Section The "At a Glance" section (formerly named…
…using the add_filter() function. (I might have over-simplified it – it's actually a bit more complicated than that.) Be sure to check out the first part of this series, if you haven't already. It's important. How to remove a function (or functions) from a filter: We learned two functions in…
…using Dependency Injection to achieve Inversion of Control.<?php class JeepWrangler { public function __construct(Petrol $fuel) { $this->fuel = $fuel; } public function refuel($litres) { return $litres * $this->fuel->getPrice(); } } class Petrol { public function getPrice() { return 130.7; } } $petrol = new Petrol; $car = new JeepWrangler($petrol); $cost…
…using custom taxonomies. All of these are valuable things to learn and they each afford their own unique functionality within the overall context of WordPress.Some of these topics we've covered in detail before, some of them we've not. One of the topics that tends to give developers who are just starting…
…using username to log in, so change the email field to a text field, and add the name attribute to both input fields:<input type="text" name="username" class="form-control" placeholder="Username" required="" autofocus=""> <input type="password" name="password" class="form-control" placeholder="Password" required="">Change the CSS selector from email to text accordingly:.form-signin input[type="text"] { margin-bottom: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0;…