Linux Tutorials Windows

Installing Apache Server on Ubuntu on Windows 10

Just some notes I wrote down when installing Apache Server running in the Ubuntu subsystem on Windows 10. This will assume that you have already got Ubuntu up and running on Windows. If you have not installed Ubuntu visit https://docs.microsoft.com/en-gb/windows/wsl/install-win10 Start up Ubuntu; which will open a terminal. Typing sudo -i at the start will eliminate the need to type it for the rest of the commands. *If you don’t do sudo -i it just means you need to…

Continue reading

Linux Tutorials

Ubuntu files on Windows 10

Where does Ubuntu File system live? After you install the Ubuntu package on Windows 10 it is not that easy to locate where the file system is living. The subsystem acts differently to a traditional virtual machine where you can control locations upon initial config. But because it is a subsystem the integration with Windows and the filesystem is seamless and takes alot of the pain out of setting up a virtual machine and way…

Continue reading

Uncategorized

Virtual Sites – Apache Ubuntu Windows 10

Apache is up and running. Now we need to set-up multiple sites (virtual hosts) on Apache2. Below we walk through a baseline vhost file and set-up. Edit the apache config file, I am a huge fan of nano, but you can easily use vim or another. If you new to text editors in Linux Nano is a nice simple easy to use interface https://wiki.gentoo.org/wiki/Nano/Basics_Guide Add the below lines to the bottom of the conf file. For…

Continue reading

Uncategorized

So, I am running Windows 10

So I finally decided to play around with Windows again. I had a spare machine and purchased a license key for the first time in quite awhile to be honest. The installation went smooth, as I was running it on Mac Hardware so there was a few tweaks to get around but no problem that didn’t seem to already have a fix. The main reason for using it you ask? well the main reason was…

Continue reading

Uncategorized

webpack Stats Data

If you have not heard of or used webpack stats data command before then it is time to take a look into it. The command generates a JSON file which contains detailed information and statistics about the modules used within the application. Stats Data command is an invaluable tool to try to understand and analyse an applications dependencies graph which is the most handy tool we can have when doing any deep level application debugging.…

Continue reading

Uncategorized

JavaScript Debugging

I thought I would put together some small notes around debugging Javascript in the Browser. Linters Yes Linters have nothing to do with the browser, however to discuss JavaScript Debugging in 2019 it is impossible not to start with Linters. Why Linters? Well for starters when I started coding for the web there was nothing like linters that existed. This meant that alot of your errors where simple ones that could have been picked up…

Continue reading

Uncategorized

Introduction to lando

There has been increasing talk in the CMS communities around lando as a tool to use with Docker for the ease of local development. I have used it on a few projects now and I really enjoyed the speed and reliability, if you are a fan of Docker Compose this is not for you but if you are a fan of reduced onboard time then lando could be your friend. How does it help? Basically lando…

Continue reading

Uncategorized

Custom Block Types for WordPress Gutenberg

Recent big news in WordPress has been around the new release of the new Block Editor for Gutenberg. In Gutenberg we now lay our pages out by adding blocks for the type of content /layout/feature we want displayed on the page. Gutenberg comes with a stack of default blocks for adding text, media, layout etc however there are many times when we will want to create out own blocktypes. Key thing to note is that…

Continue reading