Sunday, December 16, 2018

JavaScript Objects Types


In JavaScript there are 3 ways you can create an Object. Examples as below,

var object1 =
{
    name: "Zack",
    age: 35
}

console.log("Object 1 Name: "+object1.name);

var object2 = new Object();
object2.name = "Zack";
object2.age = 35;

console.log("Object 2 Name: "+object2.name);

function Object3(name, age)
{
    this.name = name;
    this.age = age;
    this.getName =function () {
        return this.name;
    }
}
var object3 = new Object3("Zack", 35)
console.log("Object 3 Name: "+object3.getName());

object1.sex = "male";
object2.sex = "male";
Object3.sex = "male";// Value will be undefined for the Object
//Object3.prototype.sex = "male";

console.log("Object 1: "+ object1.sex);
console.log("Object 2: "+ object2.sex);
console.log("Object 3: "+ object3.sex);

The 3rd Type of Object is the most used type, since it is highly reusable. 

Tuesday, October 2, 2018


When installing Atom Packages some machine will receive a error as

failed: unable to get local issuer certificate (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)

PS C:\Code\NodeJS Exercise> apm install split-diff
Installing split-diff to C:\Users\zack.dawood\.atom\packages failedRequest for package information failed: unable to get local issuer certificate (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)



In order to fix this execute the following command

apm config set strict-ssl false

Now install the required package, it should work

apm install split-diff 


Sunday, February 19, 2017

VMWare Fusion Mac Power Maps Error Fix



VMWare Fusion Mac Power Maps Error Fix 

If you are using VMWare Fusion 7-8.5 and Running Window 10. When you use Power Maps / 3D Maps Features in Microsoft Office Excel 2013 / 2016 you will have a error as below,

---------------------------
3D Maps
---------------------------
Cannot initialize DirectX. Confirm that your hardware supports DirectX 10 or later and that you have the latest video card driver installed.
---------------------------
OK   
---------------------------




To Fix the problem Shut Down the Windows 10 Virtual Machine, Click the Settings and Select Display



Check the Accelerate 3D Graphics Settings




UnCheck the Accelerate 3D Graphics Settings



Start the Virtual Machine, Open the Excel, Insert, 3D Maps