Angular and Scope - or - How not to waste time figuring out why a scope value is not 'working'
The creator of Angular notes it in this video which is well worth the watch. Basically when using includes or directives etc you may not be getting a scope value as easily because it is child scope and you may be looking in the parent scope. For example This include if I have an include and it references a model attribute like this //Some include <input ng-model="firstname"> I may not get the results from that input that I expect.
Just a reminder to check if a checkbox is checked or not. Feature: Behat bug Scenario: Given I am on "/bug.html" When I check "foo" Then the "foo" checkbox should be checked or Feature: Behat bug Scenario: Given I am on "/bug.html" When I check "foo" Then the "foo" checkbox should not be checked https://github.com/Behat/Behat/issues/298
Ng-if and Scope
Scratched my head on this one for a few. Inside of ng-if is a new scope. So a model on $scope.modelName will have to be referenced as $parent.modelName in the view. Basically it worked on another page so I knew it should work here. When I moved it out of ng-if it worked so it had to be related to that. Finally this post made some sense of it So now my filter works.
Drupal Services and Instantiating a Class
Been using Drupal Services on a project and there are some docs on how to use a Class with this. But to instantiate it I was using a function per class method. Instead I now I have one function that can instantiate the Class and method based on the 'callback' and the path 0 arg. Later I would like to just use the $_REQUEST type. You can see the service below starting on line 4
Interactive command line on a Mac. So far this helped out brew tap josegonzalez/php brew install phpsh and finally add this to the ~/.bash_profile export PYTHONPATH=/usr/local/lib/python2.7/site-packages and then re source your .bash_profile souce ~/.bash_profile now phpsh at the command line will give you an interactive shell
Installing mysql2 on a mac
http://stackoverflow.com/questions/5919727/bundle-install-problem-mysql-h-is-missing This was key to get this install done.
Questions that may come in handy when interviewing
Can you clearly define the roles and responsibilities you need me to fill? What would you need consider my hire a success in the next 6 months? In the next year? GitHub has a 0% employee turn over rate. How does your company try to prevent turnover? Using the past few years of your organization financial records do you have a sense of growth and constant revenue increase for this year?