Category Archives: Phil

Phil 12.2.14

8:00 – 6:00 SR

  • DB Backups
  • C-Town
    • Dec 10 meeting
    • Dec 10 StAg meeting?
    • Schedule walkthrough
  • Angular plus css
    • While working my way through said task, I discovered a bug where FF35 does not handle asymmetric scaling correctly. Try this link in your various browsers to test.
    • Nice set of tutorials on 3D and CSS.
  • Neo4j Graph Database? Follow link for books/videos.
  • Need to finalize direct cite reimbursable

Phil 11.28.14

7:30 – 4:30 SR

  • Angular
  • Let’s try building a directive that we use ng-repeat on. Not too bad! Here’s how I did it:

Directive javascript:

pa.directive('oldPost', ['$window', function($window) {
 return {
 templateUrl: 'directives/oldPost.html',
 restrict: 'AE',
 scope: {pobj: '='}
 }
}]);

Directive HTML (directives.oldPost.html):

<div class="inputWrapper">
 <div class="textLabel">Posted: {{pobj.postDate}}</div>
 <textArea class="textAreaOutput" ng-model="pobj.postText" ng-disabled="true"></textArea>
</div>

Master HTML:

<div ng-repeat="pobj in mainCtrl.postItems">
 <old-post pobj = "pobj"></old-post>
</div>

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.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.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?)