Latest Event Updates

JavaScript Classes review

Posted on Updated on

Some basic notes

// *****START CLASS***********************************************

//The constructor function is called automatically when an instance of the class is created.
// a special method for creating and initializing an object created with a class.
// There can only be one special method with the name “constructor” in a class.
class Person {
constructor (name,age) { //this is a function
// console.log(name,age);
getUserDescription(){return `${} is ${this.age} year(s) old`}

// *****END CLASS***********************************************

var me = new Person(“Andrew”,25); //arguments are passed to constructor function
// console.log(“”,
// console.log(“this.age”, me.age)
var description = me.getUserDescription(); // Andrew is 25 year(s) old


Location object

Posted on Updated on

Contains info about the URL

Part of the window object, also accessible by document object

Can access in dev tools by typing location

Items in location

  • search. : that is the query string 
  • pathname 
  • origin 
  • href 
  • port

See MDN for more
Examples: access seatch use
See stevenbenner jQuery deparam for deconstruction of params  or go here 

Example deparam after loading function 


Continuous posting on blog

Posted on

Was watching a YouTube video by simple programmer where he pointed out that one should keep blogging and putting down their thoughts.  It shows that you have been working on a particular tech.

That’s was a good point. It reinforces your own learning and can help others who are also looking for information. When I was learning VMware I wrote tons of articles that were used by others. I would even surprise myself and find my own articles when looking for an answer.

Downloaded the WordPress app and will arrive for more as we all should 

favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)

Posted on Updated on

One of those things that only rears it’s head once you place a project into production.

I kept getting this error even though I have not specified any favicon in my code.

Now I ask myself, what is a favicon? According to wikipedia a favicon is that little image that shows up next to a web address. Accoding to this stackoverflow link, chrome will request favicon 3 times for each IFRAME

Following the SO link, yahoo says “The favicon.ico is an image that stays in the root of your server. It’s a necessary evil because even if you don’t care about it the browser will still request it, so it’s better not to respond with a 404 Not Found


  1. Create a small 1kb ico to satisfy the browser
  2. use this to override:
    <link rel="icon" href="data:;base64,iVBORw0KGgo=">

What is the end goal? Musings on programming.

Posted on

I a doing FreeCodeCamp’s Build a Weather app for the 2nd time. (maybe 3rd? who knows)

This time I thought I would get fancy, try to get the location from HTML5 first, then if an error, get the location from a IP geolocation service.

Well, I am finding that some functions don’t wait for the return of data from another, and rather than having an orchastrator function I would need to chain the functions together.


Original:  master() call geoHTML5; if error master() call geoIP;

now: master() call geoHTML5 call geoIP() call….

Now I could just forgo HTML5 geolocation since IP geolocation works and actually has better data than HTML5 gelocation.

What is my end goal? To finish the project? Then ip geolocation would be the right choice, dont waster time on other things.

But what is my REAL end goal? TO get better at programming and learn the ins and outs of javascropt. That means I need to deal with my original plan and found out how to implement it..

What is the end goal? I’ve already done a weather app. The goal is to get better at programming.

paper.js hue problems

Posted on Updated on

Had this code:

var animatedCircle = new Path.Circle(new Point(300,300), 100).fillColor=”green”;
function onFrame(event){ animatedCircle.fillColor.hue += 1 ;}

was getting and error  :  Cannot read property ‘hue’ of undefined

solution was to add fillColor to animatedCircle AFTER initialization on a new line.





Download patch definition queued in recent tasks

Posted on Updated on

In my VIclient I saw Download patch definitions queued since yesterday.

Looks like a restart of the VUM service took care of it.

the service is VMware vCenter Update Manager Service