Author Archives: pgfeldman

Phil 11.26.14

7:30 – 4:00 SR

  • DB backups
  • Angular
    • Important note – if you want to include html from another source using ng-bind-html (php errors, for example), you have to use ngSanitize. More from stackOverflow here: http://stackoverflow.com/questions/19770156/how-to-output-html-through-angularjs-template.
    • Still playing around with how to organize code for a project with shared libraries. Currently, I’ve set it up so that there are the following folders:
      • modules – contain the initial declaration, factories and services. They also define a global (sigh) variable for each of the modules that can be used to attach controllers and directives to, because Angular isn’t as good as YUI at namespacing.
      • controllers – controllers that are unique to a particular app are contained in a common file (i.e. “postControllers.js”)
      • directives – directivesthat are unique to a particular app are contained in a common file (i.e. “postDirectives.js”). Additionally, html snippets for the directives are contained in this file. I’m guessing that this will change so that the html gets its own directory.
  • Set up workspace and downloaded environment to work from home on Friday.

Phil 11.25.14

7:30 – 5:30 SR

  • DB backups
  • Worked with Bill V. to correct some web transition paperwork
  • Angular – have a much better sense of the whole $http core service. Bult a factory that converts json to php-compatible queries and takes as arguments function pointers that can in turn have bound components in them. Much better than a subscriber pattern.
  • Discovered flowhub, which seems to be making a javaScript case tool. Need to look more deeply.

Phil 11.21.14

Phil 8:00 – 4:00

  • I can see the servers again!
  • DB backups
  • No deploy, Bill V is out for the day.
  • More Angular. Spent most of the day working on sending and receiving data. YUI had all kinds of nice functions to convert JSON objects to all kinds of things. JavaScript and Angular lack these, so after poing around for a while I found this post that seems to work nicely and lets you use POJsOs for data upload. Using a function in the in the module definition is something I have not seen before. Need to understand that better.

Phil 11.20.14

8:00 – 5:30 SR

  • DB backups – nope server access denied. And other weird server problems today.
  • Lots of good angular work today. Got several simple directives working, refactored the structure a bit, learned how to trap paste events and I think I know how to deal with key presses.

Phil 11.13.14

8:00 – 5:00 SR

  • DB backups
  • Discussion with Lenny about Direct Cite vs. Reimbursable. I think in the future that Spring DB access plus a rules engine (using WEKA?) might give us what we want.
  • Finally got tabs working in my system:
<!doctype html>
<html ng-app="ui.bootstrap">
<head>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js"></script>
    <script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.11.2.js"></script>
    <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div ><!--ng-controller="TabsDemoCtrl as tabCtrl"-->
    <tabset>
        <tab heading="Justified">Justified content</tab>
        <tab heading="SJ">Short Labeled Justified content</tab>
        <tab heading="Long Justified">Long Labeled Justified content</tab>
    </tabset>
</div>
</body>
</html>
  • Ands to get all that working also requres the bootstrap css. This isn’t surprising, it’s just not listed anywhere. So at this point, to accommodate libraries/frameworks and styles that will be reused between projects, we’re settling on a libs and styles directory. These directories will contain the local copies of the code/css files that we use in our apps.
  • Of course, the icons don’t work. It looks like we’ll need the fonts folder in the styles folder as well. Really don’t want to put in the js. And I didn’t have too.
  • So it looks like we need the following two libraries to begin with:
    • UI Bootstrap: Bootstrap components written in pure AngularJS by the AngularUI Team
    • AngularUI: The companion suite(s) to the AngularJS framework.
  • Thinking about the following for the post-JSON formatting
    session charcode char dn msec up msec

 

Phil 11.11.14

7:30 – 10:00, 5:30 – 7:00 SR

  • Taking advantage of the holiday to figure out the Angular that I forgot while I was documenting.
  • Changed queryApp to use factories and added predefined queries
  • Processing json messages. Working on adding a set of tabs to show the different processing.
  • You would think that tabs would be a thing, but they’re really horizontal menues in CSS. Using pure css to make this easier. But I can’t find a way to make the tabs behave like radio buttons. Looks like my first directive…

Phil 11.6.14

8:00 – 5:30 SR

  • DB Backups
  • Deployment of new FA. Still some problems.
  • Chasing down webstorm bugs. Creating a new project seems to make everything work just fine. Going to try checking out ‘experiments’. And that worked!
  • Then the corporate Internet and phones went down. I’m now writing this from home.
  • Angular? Yep, back to directives. FF v.33 is genuinely hosed with the IntelliJ debugger. Though since the FF debugger is so good, that’s not really much of a problem?
    • Chapter 13 – Advanced Directives (pun intended?)