Latest Posts
Friday, October 29, 2021
var streetFighter = "Ryu";
function displayFighter()
{
var streetFighter = "Ken";
console.log(streetFighter);
}
displayFighter();
Thursday, October 28, 2021
product.name
or with array notation
product["name"]
They both get the job done. However with the array syntax [""] you access the object as if it's an array but instead of accessing it by numbers or index you access it by the property names. That's because JavaScript objects are associative arrays. They look like other objects in other languages such as C, C++, and Java. However they behave very differently.
In other languages objects are defined in advance, their properties are methods are fixed. To add a property or method to the object you have to change the class the object instance is created from.
Wednesday, October 27, 2021
In this post we are going to set up our website to serve up https traffic so that our traffic can be encrypted. In this post the first part of the series we are going to request a certificate from the Certificate Manager in AWS.
1. The first thing we need to do is create a certificate, In the AWS search field search for Certificate Manager then click on the drop down auto complete choice.
Tuesday, October 26, 2021
In this post I am going to show you how to merge an existing branch into a master branch
Here are the steps:
1. First you want to checkout the master branch to work on it with the command git checkout master
Monday, October 25, 2021
First let's create an object that we can work with:
Type in the following code in the between the <script type="text/javascript"></script> tag in an html page.
var product = new Object();
product.name = "Chai";
product.category = "Tea";
product.country = "India";
product.supplier = {
name: "ACME Tea Of India",
location: "New Delhi"
};
console.log(product);
If you run the page with the code above you will see the following in the browser console:
Friday, October 22, 2021
If you type the following line as the first line of code in your JavaScript file
var globalObj = this;
What do you think will get? In this case you are referencing the Window object, which is JavaScript's object for the browser window. As you can see there's a whole bunch of global properties and methods already defined at the global level.
Thursday, October 21, 2021
var product = new Object();
product.name = "Chai";
product.category = "Tea";
product.country = "India";
product.supplier = {
name: "ACME Tea Of India",
location: "New Delhi"
};
Let's say another developer works on the project and he assumes that since there's a "country" property that there should be a "city" property. If he tries to access the access the "city" property in the product object he will get an undefined, because the property does not exist. If he types the following he will get the undefined message.
Wednesday, October 20, 2021
In this pose we are going to implement auto scaling on our instances. Auto scaling is a feature on AWS that automatically scaled horizontally either based on metrics or the health of an instance. In this post we are going to setup auto scaling on an Application Load Balancer.
1. The first thing we have to do is setup an Auto Scaling Group under "Auto Scaling" click on "Auto Scaling Groups"
Tuesday, October 19, 2021
First let's create a new branch with the following command in the local git repository
git checkout -b "Hour2"
Now following the tutorials in this post Hour 2: Enable ASP.NET Core to Serve Static Files
After you are done open the command line in the folder and type git add .
Monday, October 18, 2021
Let say you have the following JavaScript code to create a product object.
var product = new Object();
product.name = "Chai";
product.category = "Tea";
product.country = "India";
product.badProperty = "Bad Property";
product.badProperty2 = "Bad Property 2";
product.supplier = {
name: "ACME Tea Of India",
location: "New Delhi"
};
console.log(product);







