Last time, we had a brief introduction to the world of PHP and how opening and closing tags look like. We also looked at
echo which displays a passed string onto your webpage.
To continue with our PHP Tutorial series, we take a look at variables.
In this series of PHP Introduction posts, we will take a look at the basics of PHP and how you can utilize PHP to create dynamic webpages.
Lets take a look into inheritance when coding with Java.
Howdy everyone! I am in the process of installing Ghost on a Debian 7 VPS and thought I should document this as I go through the installation process.
Continue Reading →
HashMap is a class found within Java. HashMap is used to store a key paired with a corresponding value. For example, if you want to have a collection of Students that has a course and their grade for that course. You would think to implement this, you will initialize:
Nope! HashMap only deals with Objects in Java and because double is a Primitive type, you will get an error when you try to compile your code. So, how do we implement the above in our Java code?
One of the very first things you should do when you get your VPS or dedicated server is to disable root access. Why? root is the default login for all of the popular distributions (except for Ubuntu) that come as an option on VPS or dedicated servers. This makes it easy for an evil-doer to brute force the user root. Of course you can mitigate this with something like fail2ban, but why disable root login to begin with?
In the past few years, VPS instances are becoming more affordable. You can even find providers who offer a VPS for less than $5/yr to host a website (this site is hosted on something similar). With the affordability, you will have evil do-ers who wants to do damage to VPS. You will want to set up some from of protection for your VPS.