$ uname -r
// This script loops though the list of collection names in a MongoDB and runs the compact operation on them | |
// Simply paste this into the Mongo shell | |
use testDbName; | |
db.getCollectionNames().forEach(function (collectionName) { | |
print('Compacting: ' + collectionName); | |
db.runCommand({ compact: collectionName }); | |
}); |
1 - Error on opening an reveal modal throwing (We're sorry, 'open' is not an available method for this element.)
var popup = new Foundation.Reveal($('#myElement'));
popup.open();
The first step to using Let's Encrypt to obtain an SSL certificate is to install the Certbot software on your server.
Certbot is in very active development, so the Certbot packages provided by Ubuntu tend to be outdated. However, the Certbot developers maintain a Ubuntu software repository with up-to-date versions, so we'll use that repository instead.
First, add the repository.
$ sudo add-apt-repository ppa:certbot/certbot
How to delete duplicate nodes and their relationships in neo4j with cypher based on a property of that node?
The problem is easy to understand. We have 'duplicate' nodes in our database based on the 'id' field on the node properties.
Well this sounds easy enough, until you have to actually do it.
My first attempt was to try and figure out which nodes are actualy duplicate (based on a property on the node). This seems to be pretty straightforward.
Cypher:
Before we begin, we can check if the system already has some swap space available. It is possible to have multiple swap files or swap partitions, but generally one should be enough.
We can see if the system has any configured swap by typing:
sudo swapon --show
Edit this file: site-packages/django/contrib/gis/geos/libgeos.py Look for the function: geos_version_info And change this line:
ver = geos_version().decode()
With this line:
ver = geos_version().decode().split(' ')[0]
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<title> | |
How To Add Google Translate | |
Button On Your Webpage ? | |
</title> | |
</head> |