Testing out code highlighting

I just installed the code highlighting plugin. Works neat! It auto-detects the language. Here’s some Javascript, from the web front-end code:

'use strict';

angular.module('myApp.view1', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/view1', {
    templateUrl: 'view1/view1.html',
    controller: 'View1Ctrl'
  });
}])

.controller('View1Ctrl', [ '$scope', '$log', '$http', function($scope, $log, $http) {
  $log.debug('foobar');
  $scope.name = '';
  $scope.names = [{name:"Chris"}, {name:"Calvin"}];
  $scope.addName = function() {
    $scope.names.push( {'name':$scope.name} );
    $scope.name = '';
  };
  $http.get("http://localhost:5000/snapshots").then(function(response) {
    $scope.snapshots = response.data;
    $log.debug($scope.snapshots)
  });
}]);

Here’s a random Python stack trace:

Traceback (most recent call last):
  File "", line 1, in 
Exception: foobar

Neo4j Database and API

  1. Running Neo4j Database. Using sudo su(super user) instead of ansible and vagrant. But anyways i can re-install it in Vagrant. Perfectly i run it in http://localhost:7474/browser/.
  2.  Starting up API server. Using vtenv(virtualenv savant), tried running savant_api_server in courtesy of Mr. Randy Lastinger of  how to API my neo4j in YOUTUBE. Thanks by the way.
  3. An error occured saying ” raise RuntimeError(“No recommended backend was available. Install the ”
    RuntimeError: No recommended backend was available. Install the keyrings.alt package if you want to use the non-recommended backends. See README.rst for details   “.
  4. Python environments setup was edited. Keyrings package check(recomended but its not the solution).
  5. Tried to run it in VM and check if the dependency of keyring is in their. Virtualenv as well(not recomended).
  6.  Clone Repo from Github.com, https://github.com/jaraco/keyrings.alt.git. Just run setup.py(Solution).
  7. Another error saying ”   raise Unauthorized(self.uri.string)
    py2neo.database.status.Unauthorized: http://localhost:7474/db/data/“.

Tomorrow i will continue to review about python API servers.

 

Please notify me if there is something wrong with this.

 

P.S Sir Kurt Yoder, please grant me a permission to post images.

Welcome Mark!

Things are moving forward here at Doveps. This week was the first week of our first paid employee! His name is Mark, and he hails from the Philippines.

For A-squared, the tools and technologies we use are a little less common than the standard “LAMP” stack. The biggest difference is that we are using a graph database: Neo4j.

The tutorials for Neo4j talk a lot about graphs as applied to social media. A-squared is a lot like social media for configuration management. Instead of using the wisdom of crowds to find large scale patterns, we will apply the wisdom of system administrators and engineers to generate configuration management patterns.

Mark’s work will be moving us in this direction. He will be building Neo4j queries, and attaching them to Python APIs. This sets us up for success in helping companies automate DevOps.

Please join me in welcoming Mark to Doveps!