Monthly Archives: April 2015

Phil 4.7.15

8:00 – 4:00 SR

  • Committed to bringing in a test version of the charting. I probably need a WGLChart2D so that there’s no DB complications initially. Need to verify that the JSON servlet still works though.
  • Added legends back in. Had to fix a bad string test
  • The CanvasRenderer moved. Had to fix that. Verified it still works
  • Removing chart classes from the controller and putting them in the classes folder
  • Added WebGlCharts to classes directory and to the makefile. Had problems until I realized that I had created “WegGlCharts”. Stupid fingers.
  • Starrting WGLChart2D
  • My new dev box is here!
  • 2D is mostly ported and running. A few more things to clean up before packaging to deploy. Visible here.

Phil 4.3.15

8:00 – 5:00 SR

  • John P. is having IE 11 problems with FR. Put in a ticket to get upgraded
  • Last chance at getting super.myMethod() to work…
    • Soooooooooo close. I have it working for controllers. I wound up using the eval() function to create a javascript function pointer to the method on this.prototype. I think that’s not horrible. It blows up when I try to use it on a service, which is nearly identical. The ‘this’ seems to be getting lost, so the prototype object that I’m pointing to isn’t there anymore. For kicks, I tried getting the string values of the prototype function and used eval() to attach them as function pointers to ‘this’, but that blows up as well.
    • Falling back to setting the function pointers explicitly in the derived class constructor.
    • And that seems to work…
    • Adding a setFunctionPointer method in the base class that takes the name of the function and attaches it to ‘this’
    • Works! Whoops, not everywhere. Let’s see if we pass in the ‘this’ from the derived class.
    • Works! Adding it to all the derived classes.
    • And that works too. So weird. Ok, because I like pain, I’m going to try to move the call to setFunctionPointer back to the base class constructor.
    • Sonofabitch. That works. super.myMethod() works. Controllers, Directives, Services and Factories work. You can explore it here.

Phil 4.2.15

8:00 – 5:00 SR

  • Had to bounce the server
  • Status reports! Done.
  • Going to revisit the dynamic creation of callback functions to see if I can get it to work with Angular. If that fails I’m giving up and going back to interfaces. I expect Angular 2.0 to fix this problem anyway.
  • This works:
    export class ATSBase {
       constructor() {
          /****/
          this["timeoutFunction"] = () => {
             var proto:Object = this["__proto__"];
             proto["timeoutFunction"].apply(this, arguments);
          };
    
          this["myFunction"] = () => {
             var proto:Object = this["__proto__"];
             proto["myFunction"].apply(this, arguments);
          };
          console.log("done");
          /****/
       }
    }
  • This does not:
    class Base {
       constructor() {
          for (var p in this)
             if (!Object.prototype.hasOwnProperty.call(this, p) && typeof this[p] == 'function') {
                var method = this[p];
                this[p] = () => { method.apply(this, arguments); };
                // (make a prototype method bound to the instance)
             }
       }
    }
  • If I figure out that, I think I’ve got it…

Dong Shin 04.01.2015

  • working on StoredQueryService
    • RowMapper for StoredQuery class
    • copied User class and associated classes – moved to Spring Utils?
    • modified ServiceResponse to return status and message
    • got CRUD working in Service
    • got JSON service working….