Cooking Code

Toetsaanslagen van een programmeur

| Cooking Code
Cooking Code 2017-07-17T16:17:23+00:00

Bootstrap a Neo4J instance on a new Ubuntu VM

(note to self) wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add - echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee /etc/apt/sources.list.d/neo4j.list sudo apt-get update sudo apt-get install neo4j systemctl enable neo4j systemctl restart neo4j change config: systemctl edit neo4j view log: journalctl -e -u neo4j more details at https://neo4j.com/docs/operations-manual/3.2/installation/linux/systemd/

By | augustus 28th, 2017|Categories: Neo4J, Uncategorized|0 Comments

Bootstrapping the store-utils

While working on the crashed Neo4J database I needed to bootstrap the store-utils of Jexp fame to see what it would do with the crashed dataset. The repository readme at https://github.com/jexp/store-utils gives all the details needed but for a non-Java developer I found there is some basic info lacking. Therefore this quick outline to get [...]

By | augustus 27th, 2017|Categories: Code, Neo4J, Uncategorized|0 Comments

Quick notes on running a manual consistency-check

It is an good idea to check backups with the Consistency checker. The docs on that are at: https://neo4j.com/developer/kb/how-do-i-run-consistency-check-manually/ Basically it comes down to this commandline : $ java -cp 'lib/*:system/lib/*' org.neo4j.consistency.ConsistencyCheckTool /tmp/graph.db Perhaps some environment variables are assumed which I have not set on my production machine but the commandline above failed moaning about [...]

By | augustus 27th, 2017|Categories: Neo4J|0 Comments

Just LOAD CSV it

For a recent project I just needed a list of countries for a user to be selected. https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv Fills the need perfectly; now how to get that into Neo? When googling around it probably takes less than  a few seconds to find a reference to the LOAD CSV command. Another half a minute later and [...]

By | januari 2nd, 2017|Categories: Cooking Code, Neo4J|0 Comments

Graphing on the edge

Neo just released their 3.1 version; although I was using it for development already it's always good to update the production servers as soon as a known stable new version is available. For some projects I am using some plugins; mostly the Graphaware UUID plugin and APOC. Obviously the latest release also requires the latest plugins. [...]

By | december 15th, 2016|Categories: Cooking Code, Graph, Neo4J|0 Comments