Howdy, Welcome to My Blog
Written by Tony Lea - 2 minute read
The tcpdump command can be used to check for incoming and outgoing TCP traffic on your server. You can check if you have tcpdump installed by running the following command:which tcpdumpYou should then see an output similar to:/usr/sbin/tcpdumpInstall...
Written by Tony Lea - 6 minute read
Postfix is an open source Mail Transfer Agent which will allow your server to receive emails from a specific address and parse that email as you see fit.Imagine you had a domain at hello.com and you wanted to setup an email such as [email protected] ...
Written by Tony Lea - 1 minute read
Appending HTML to the end of another element is very simple. Most people shy away from jQuery nowadays so it's important to know how to append HTML to another element in Vanilla Javascript.Let's say that you want to append a string of HTML to the end...
Written by Tony Lea - 3 minute read
Want to be a better developer? We all do, right? Well I’ve put together 5 sure fire fundamentals to follow in order to become a better developer. Ironically these tips have little to do with code, but be assured that following these suggestions will ...
Written by Tony Lea - 1 minute read
Connecting to a MySQL database in NodeJS is actually quite simple. First off, you'll need to make sure you have a local MySQL server on your machine and then you can follow these steps.To start off you'll want to create a new folder, navigate to that...
Written by Tony Lea - 1 minute read
Timing the functionality in your JavaScript code can help you write more efficient code and it can help you figure out which code is slowing down your application.Luckily JavaScript has a few handy helper functions we can utilize to test the speed of...
Written by Tony Lea - 3 minute read
The code you write today will eventually become "legacy code". After time our code needs to be refactored or rewritten. Similarly the thoughts and impressions we code into our mind must also be refactored or rewritten. In fact, a lot of life's proble...
Written by Tony Lea - 3 minute read
This is a short story about my experience with drinking beer and coding. Will it make you less productive? Maybe more creative?During my college years and my 20's I had many nightly programming adventures which included massive amounts of pizza ...
Written by Tony Lea - 7 minute read
Laravel Blade is a simple templating language which make views much easier to read. Blade gives us some simple shorthand syntax for common PHP functions such as @if, @foreach, @isset, and many others. Take a look at all the blade shorthand syntax at ...
Written by Tony Lea - 1 minute read
The Javascript Foreach loop comes in very handy when you want to loop through an array of items. The loop will execute for each item in your array. Take a look at the following example of a Javascript Foreach loop:// Create an array of groceries var ...