Category Archives: NextGen experimentation

Phil 11.12.13

8:00 – 4:00 SR

  • Back from CA and YUI class. It was 72-76 and clear blue skies out there. Here it’s 40 with sprinkles and gloomy clouds. But our bad traffic is way better than their bad traffic.
  • Backups
  • Need to do status for Tangie. Done.
  • Composing email to Jenny Donnelly about YUI
  • Adding Typescript (Cool Typescript Playground)
  • Following directions on the JetBrains site
    • Downloading and installing node.js
    • added NODE_JS_HOME as a path variable
    • installed the typescript package. Note that it gets installed to the user directory, not the node dir: C:\Users\Phil\AppData\Roaming\npm

  • Pressed the “Configure” button, which downloaded sources
  • Poked at the “set scope” link, which doesn’t have an obvious effect.
  • Clicked on “Add Watcher” in the pop-up alert (shown below) that appeared when I tried to save “typescriptTest.ts”

watcher_prompt

  • Added the C:\Users\Phil\AppData\Roaming\npm\tsc.cmp path to the watcher config dialog and then clicked “OK”
  • Ok, so now Typescript works. However, integrating it looks to be a pain..? But at the same time, it looks like there is a GitHub project that has set up all the interfaces?
  • Ok, the typescript runs, the watcher converts it, and a small HTML file launches it.

TypeScript:

class Greeter {
    greeting: string;
    constructor(message: string) {
        this.greeting = message;
    }
    greet() {
        return "Hello, " + this.greeting;
    }
}

var greeter = new Greeter("typescript");

var button = document.createElement('button');
button.textContent = "Say Hello";
button.onclick = function() {
    alert(greeter.greet());
}

document.body.appendChild(button);

Transpiled JavaScript:

var Greeter = (function () {
    function Greeter(message) {
        this.greeting = message;
    }
    Greeter.prototype.greet = function () {
        return "Hello, " + this.greeting;
    };
    return Greeter;
})();

var greeter = new Greeter("typescript");

var button = document.createElement('button');
button.textContent = "Say Hello";
button.onclick = function () {
    alert(greeter.greet());
};

document.body.appendChild(button);
//# sourceMappingURL=typescriptTest.js.map

HTML (Calling JavaScript)

<!DOCTYPE html>
<html>
<title>TypeScript test</title>
<body>
<script type="text/javascript" src="typescriptTest.js">
</script>
</body>
</html>

Phil 10.23.13

8:00 – 4:00 SR

  • Backups
  • Worked with Dong to isolate and fix query math issues
  • Meeting with some Bee Folks. Went well. Their db is Access, hand rolled on a shared drive. God help us.
  • Moved training along a bit.
  • YUI – Ajax
    • Started up Apache Server and stopped Tomcat so I could serve PHP
    • created directory C:\xampp\htdocs\ajax and put the chapter 5 code in there
    • Connected Webstorm to that code.
    • Running everything nicely now. Working with error handling.

Phil 10.22.13

8:00 – 4:00 SR

  • Need to set up a server and install/uninstall xampp, then install mysql and Tomcat, restore the db and see how that goes.
  • Backups
  • YUI. Finished chapter 4. Somewhat annoyed by the Editor support today. Codecomplete knows, for example that Y.on().xxx has a variety of valid options. Tooltip usage does not. Couldn’t find any way to make the tooltips more verbose either -1, Webstorm…

Phil 10.16.13

8:00 – 4:00 SR

  • Obligation and Commitments from FACTS are cumulative. Actuals are non-cumulative. Remove all the calculations summing up obligations and commitments by monthly and store monthly values from Cognos.
  • IE7 works with YUI!
  • Need to add search to “View Financial Data”. Rather than showing all the subelements, clicking on a row in Requisition Information (top grid) will show the associated detailed financial view. We should also add a search to Req Info.   The summary always shows.
  • Create historical record Cognos data table. We can use scripts later to integrate data into our reports…
  • Finished chapter 2, starting on chapter 3. Also got timers working from the gallery. One search, one bug, one additional search.

Phil 10.15.13

Phil 8:00 – 3:30  SR

  • The dialog for versions has a broken “dismiss” button.
  • Unlock project is unlocking multiple projects locked by the same user(?)
  • Trying out YUI on the integration server…. Success! Take that, IE7! Ok, maybe not. Just realized that I only ran the testes using the browser that’s on the server, which is FF. Need to try running on a client box with IE tomorrow. The most important example to run will probably be add_capability.html.
  • Working my way through the YUI cookbook. In the element_classes example (Recipe 2.2), there is a call to Y.log(). It turns out that there is support for a logger window. I found this by Googling “yui Y.log” The top result was http://yuilibrary.com/yui/docs/console/.  Which was pretty much what I needed. Using the documentation as a guide, I was able to integrate it, including giving it a global scope.  And then, after a few more minutes, I was able to add draggable behavior by adding “dd-plugin” to the YUI().use() arguments and them to the Y.Console.plug() arguments. For future reference, here’s the total code required for the console, with three lines of test code (bracket the code with <body class = “yui3-skin-sam”>):
YUI().use('console', 'overlay', "console-filters", "dd-plugin", function (Y) {
    // Console has no required configuration
    // In fact, you often don't even need to store the instance
    var cons = new Y.Console({ logSource: Y.Global })
            .plug(Y.Plugin.Drag, { handles: ['.yui3-console-hd'] })
            .plug(Y.Plugin.ConsoleFilters);
    cons.render();
    Y.log("Console info message", "info", "element_classes");
    Y.log("Console warn message", "warn", "element_classes");
    Y.log("Console error message", "error", "element_classes");
});
  • Skedaddled a bit early to get in some good weather

Phil 10.11.13

8:00 – 4:00 SR

  • Backups
  • Meeting with Lenny
  • Deployed a new version of FA that fixed the comboboxes but broke other things. Also, it looks like the QuieryBuilder config isn’t up to date.
  • Installing JetBrains 7.0
  • Back to Javascript. I think a good goal is to produce a suite of tests to run on IE7 and see how that goes.
  • It should actually go pretty well, assuming this compatibility chart is correct:
  • Also, there seems to be a conference coming up.
  • Getting back into the hang of YUI. Still cool. And about a third caught up.

Phil 9.10.13

8:00 – 4:30 SR

  • Backups
  • Downloaded WebStorm, and basically starting over. It’s been a while.
  • Had a long discussion with Dong about how to hendle the next phase of development (i.e. FA/RA). We think there may be three phases:
    1. Do the minimum changes to the current DB to support a req-based set of tools
    2. Change out the DB under the  flex tools to support a cleaner database schema
      1. IMG_2077
    3. Develop a new set of apps that allow for dynamic db configuration and template-based GUIs
      1. IMG_2078

Phil 5.9.13

7:30 – 11:00 SR

  • Deployed new FA and Javadoc for VSS
  • Updated main web page to add links
  • Added current users to FA db
  • backed up everything but enh. Need to start doing that.
  • Meeting with the PIT crew
    • Add the ability to build custom, named queries instead of the dropdowns in the Funding Status screen
      • Implies column config, or something like that
      • sortable columns
      • validator for matching parens, etc might be handy
    • Anywhere a budget is entered by had, a dialog should come up when it it changed. (who, why, when, more?)
    • Switch to Budget center based table structure. This may mean that the PIT crew will have to enter all the PA data over again with the new PA.
    • Change sub projects so that there is simply a “parent id” field. Recursively search to build trees.
    • Add individual tracability to req line items
    • Funding Status
      • Common elements are in top grid
      • Unique items are in main grid
      • Queries are stored in a dropdown
      • SQL might have macros in it that cause a dialog to pop up with fields?

Phil 4.29.13

8:00 – 12:00 OH

  • Class

12:00 – 4:00 SR

  • Test cases for ScriptFacades
  • Updating Java first.
  • I think I want to make the test cases create a “test” database and populate it in the setup, then destroy it at the end of the test. The .sql file can be in the assets. This does mean that the database access methods (_dbHelper? Others? have to know about this DB).