VueJS Subnet Calculator

vuejs-example-applicatio

In this Vue.js tutorial, we’ll create a new Vue.js powered application that is a little more ambitious than what we have covered so far. Here, we will build an Internet Protocol version 4 javascript subnet calculator. The subnet calculator accepts an IP address as well as a subnet mask. From these two inputs, the application dynamically calculates the Network Address, the First Host, the Last Host, the Broadcast Address, the Total Hosts, and more.…

How To Quickly Test PHP Snippets

quickly-test-php-snippets

Have you ever wanted to quickly test small PHP snippets of code, but you became bogged down in opening up your favorite IDE, preparing a simple test.php file, loading it in the browser, etc.? Sometimes, all you want to do is quickly test some logic. Perhaps you’re even just browsing some of the example snippets at the PHP online manual, and thought it might be nice to just quickly run these examples and see them in action.…

Getting Started With Testing In Laravel

testing-with-laravel

Testing is not something I’ve personally ever put a lot of time in to. If the code I was writing did what I wanted it to do, that was good enough for me. If formal testing is not part of your background, the benefits of testing are not all that obvious. In fact, being new to testing myself, some of the benefits are not obvious to me.…

How To Compare Two Arrays of Data and Calculate Position Differences

How To Compare Two Arrays of Data and Calculate Position Differences

Sometimes we might want to compare two arrays of data, and determine the positional difference of each value in the array from one to the next. One example of such an application of this might be similar to what you see where a website is keeping track of the position of a programming language for instance. Consider the Tiobe Index which tracks the position of a programming language from month to month.…

How To Provision NGINX Using Vagrant

How To Provision NGINX Using Vagrant

Now that we have learned the basics of how to work with Vagrant, let’s now go a little further into working with the fundamentals in Vagrant. In this vagrant tutorial, we’re going to create a new development environment using the precise32 box like we have done already. This time however, we are going to add some shell provisioning to the Vagrantfile in order to automatically install the NGINX web server on our new virtual machine.…