Custom Search

Friday, October 20, 2017

How to list all the Properties of a JavaScript object

console.log("=========Object.getOwnPropertyNames(this)=========="+Object.getOwnPropertyNames(this));
console.log("===========Object.keys(this)========"+Object.keys(this));
console.log("===========Object.values(this)========"+Object.values(this));
console.log("===========Object.entries(this)========"+Object.entries(this));
console.log("===========Object.entries(this.el)========"+Object.entries(this.el));
console.log("===========Object.entries(this.container)========"+Object.entries(this.container));
console.log("===========Object.entries(this.initialConfig)========"+Object.entries(this.initialConfig));



Output
########

=========Object.getOwnPropertyNames(this)==========initialConfig,xtype,name,fieldLabel,labelWidth,events,id,ownerCt,container,rendered,autoEl,el,wrap,checked,boxReady,lastSize,mons,originalValue

===========Object.keys(this)========initialConfig,xtype,name,fieldLabel,labelWidth,events,id,ownerCt,container,rendered,autoEl,el,wrap,checked,boxReady,lastSize,mons,originalValue

===========Object.values(this)========[object Object],checkbox,ngbsmultifmly,Multifamily NGBS Certification,160,[object Object],ext-comp-1180,[object Object],[object Object],true,[object Object],[object Object],[object Object],true,true,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],false

===========Object.entries(this)========initialConfig,[object Object],xtype,checkbox,name,ngbsmultifmly,fieldLabel,Multifamily NGBS Certification,labelWidth,160,events,[object Object],id,ext-comp-1180,ownerCt,[object Object],container,[object Object],rendered,true,autoEl,[object Object],el,[object Object],wrap,[object Object],checked,true,boxReady,true,lastSize,[object Object],mons,[object Object],[object Object],[object Object],[object Object],[object Object],originalValue,false

===========Object.entries(this.el)========dom,[object HTMLInputElement],id,ext-comp-1180

===========Object.entries(this.container)========dom,[object HTMLDivElement],id,x-form-el-ext-comp-1180

===========Object.entries(this.initialConfig)========xtype,checkbox,name,ngbsmultifmly,fieldLabel,Multifamily NGBS Certification,listeners,[object Object],labelWidth,160


Saturday, October 14, 2017

How to Upgrade Puppet Version Server and Agent

1)
$ wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
$ sudo dpkg -i puppetlabs-release-pc1-trusty.deb
$ sudo apt-get update

2)
$ sudo apt-get install puppet
$ puppet —version



3)
$ wget https://downloads.puppetlabs.com/puppet/puppet-4.10.8.tar.gz
$ tar -xzf puppet-4.10.8.tar.gz

4)
$ cd . puppet-4.10.8
$ ./install.rb

How to Install Puppet from Tar file

1)
$ wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
$ sudo dpkg -i puppetlabs-release-pc1-trusty.deb
$ sudo apt-get update

2)
$ sudo apt-get install puppet
$ puppet —version



3)
$ wget https://downloads.puppetlabs.com/puppet/puppet-4.10.8.tar.gz
$ tar -xzf puppet-4.10.8.tar.gz

4)
$ cd . puppet-4.10.8
$ ./install.rb

How to install Latest Version of Puppet in Ubuntu Linux - Puppet 5 (Upgrade Puppet Version)

1)
$ wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
$ sudo dpkg -i puppetlabs-release-pc1-trusty.deb
$ sudo apt-get update

2)
$ sudo apt-get install puppet
$ puppet —version



3)
$ wget https://downloads.puppetlabs.com/puppet/puppet-4.10.8.tar.gz
$ tar -xzf puppet-4.10.8.tar.gz

4)
$ cd . puppet-4.10.8
$ ./install.rb