Latest Posts
Wednesday, June 30, 2021
AWS has a very generous free tier account, but there will be times when you forget to clean up your work and are stuck with the bill. There's a setting in AWS that allows to set the limits on your account so that you won't get charged for resources or get a surprise on your bill.
Here are the steps to set a billing alarm:
1. First thing you have to do is sign in as the root user
Tuesday, June 29, 2021
In this post we are going to use the .NET Core CLI to create a web api application for our app. The first thing to do is create an a folder to hold our files. Since we are using Linux you want to sudo su into the terminal and create the following folder /opt/app/ACMEBank. Once that's done cd into it and you are ready to type in the command to create the Web Api.
Here are the steps:
1. What you want to do first is to make sure that you have .NET Core install by typing in dotnet --info, there should be information on your .NET Core install. If you don't have .NET install you can follow the directions in this post.
Monday, June 28, 2021
The dig and nslookup commands are useful commands that you can use to lookup information about a network. The dig command gives you more information about a network. For example for my network I have a DNS server setup in it, if I wanted to display the DNS information on my server I would simply type dig masterdns.acmebanking.com and I would get the following:
As you can see it gives you a lot of information about the DNS server like the IP that the server resolves to. However, there are times when you just want something quick and brief on what the IP resolves to. For example you might know the IP address but not the hostname or vice versa and you want to lookup the information on the part that is know that's when nslookup comes in handy. For example let's say you know the IP address 192.168.0.15 but you don't know the hostname. You can lookup the hostname by typing nslookup 192.168.0.15 and you would get the hostname that resolves to the IP address
Obviously you can get more information with the dig command but sometimes it's nice to get less information with the nslookup command. Although it is deprecated and might not be available for your Linux distribution. So if it's not available use the dig command instead.
Friday, June 25, 2021
Let's say we have a div with a font-size of 15px, and there's a span tag with a font-size of 2em. The span font-size of the span would be 30px, because the span is part of the div element.
Let's say have the following styles:
div {
font-size: 15px;
}
span {
font-size: 2em;
}
And with the following HTML markup:
<div>The font-size of the div element. <span>The span font-size</span>.</div>
The output is the following:
Thursday, June 24, 2021
SELECT COUNT(*) NumberOfProductsByCategory FROM Products GROUP BY CategoryID
The query above gives you the following results:

Wednesday, June 23, 2021
So far we have connected to our EC2 instance with the terminal on Linux and Putty on Windows. There is another option that you can perform and it only requires that you have a browser. You must have an Amazon Linux Version 2 instance for this to work, at least that's what I think.
On the instances page on the AWS console click on the "Connect" button while the instance is selected
Tuesday, June 22, 2021
The most important thing for most modern dynamic application these day is choosing a database to store your data. If you are on a Windows environment then you use SQL Server database that is a fine choice. But if you are on Linux MySQL is a great choice also. In this post we are going to go through how to install MySQL server on our Fedora development machine.
Here are the steps to install MySQL on Fedora Linux:
1. First we need to add the MySQL repository to our machine by tying in the following command in the terminal
sudo dnf -y install https://dev.mysql.com/get/mysql80-community-release-fc32-1.noarch
Monday, June 21, 2021
The chattr command in Linux is one of the more useful commands that you've probably used but have no idea what it's use is, it just works! That's probably the most dangerous phrase in IT. Well just from the command you can tell that controls the file modify attribute of the file. Well not really I mean how is chattr related to file attributes. I guess it's change attribute. It's pretty easy to use + means to add an attribute, - means to remove an attribute, and = means you want to assign an attribute. You can also add attributes with the -R option to reclusively on a directory.
One of the senario I used often is when I want to make a file immutable, I'll just type chattr +i filename. For instance if I and setting a DNS server and I don't want the DHCP scripts to change the resolv.conf file every time I restart the NetworkManager.service I would just type chattr +i /etc/resolv.conf to make the file immutable. If I try to modify the file I would get the following error message saying I can't modify the file.
It's just as easy to make it writable again, it would just be chattr -i /etc/resolv.conf
Friday, June 18, 2021
The values for widening and narrowing fonts are the following:
- normal
- ultra-condensed
- extra-condensed
- condensed
- semi-condensed
- semi-expanded
- expanded
- extra-expanded
- ultra-expanded









