David Vassallo's Blog

If at first you don't succeed; call it version 1.0

Category Archives: Open Source

Nugget Post: Pouchdb-find regex example

Here’s an example of using the excellent pouchdb-find plugin’s (https://github.com/nolanlawson/pouchdb-find) regex features. I couldn’t really find a good example in the documentation, but looking at the source code we come up with something like this:

Note that the $regex command cannot be run on an indexed field, so this will be a slow query – apart from the expensive regex operation, all records are being loaded into memory and scanned.

The above example can be run on the pouchdb-find demo site (http://nolanlawson.github.io/pouchdb-find/)

Lessons learned: Gephi not starting up

Scenario: When using Ubuntu Trusty (14.04.3LTS) Gephi 0.82 initializes but gets stuck on “Loading Cached Objects”

Workspace 1_318

Solution: The default Gephi startup bash script does not correctly initialize the JAVA path (it uses $jdkhome) The solution is simply to add the following to the beginning of the startup script (~/gephi/bin/gephi)

export JAVA_HOME=/usr/lib/jvm/default-java

The full script is here:


Get every new post delivered to your Inbox.

Join 261 other followers