This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Field; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.databind.BeanDescription; | |
import com.fasterxml.jackson.databind.SerializationConfig; | |
import com.fasterxml.jackson.databind.cfg.PackageVersion; | |
import com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig; | |
import com.fasterxml.jackson.databind.ser.BeanSerializerFactory; | |
import com.fasterxml.jackson.databind.ser.PropertyBuilder; | |
import com.fasterxml.jackson.databind.ser.SerializerFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# vim: expandtab ts=4 sw=4 | |
# Inspired by http://www.raspberrypi-spy.co.uk/2015/03/bh1750fvi-i2c-digital-light-intensity-sensor/ | |
import smbus | |
import time | |
class BH1750(): | |
""" Implement BH1750 communication. """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python -O | |
# vim: set fileencoding=utf-8 : | |
# Quick and dirty Python port of fill_depth_colorization.m | |
# from http://cs.nyu.edu/~silberman/code/toolbox_nyu_depth_v2.zip | |
from __future__ import print_function | |
import numpy as np | |
from itertools import product | |
import scipy.stats |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 : | |
from __future__ import division, absolute_import, print_function | |
import sys | |
from pymongo import MongoClient | |
if __name__ == "__main__": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DBCollection; | |
import com.mongodb.DBCursor; | |
import com.mongodb.DBObject; | |
import com.mongodb.Mongo; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DBCollection; | |
import com.mongodb.DBObject; | |
import com.mongodb.Mongo; | |
public class SimpleOrQuery { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tue May 10 13:58:21 [conn5] CMD fsync: sync:1 lock:0 | |
Tue May 10 13:58:21 [conn5] fsync from getlasterror | |
Tue May 10 13:58:21 [conn5] CMD fsync: sync:1 lock:0 | |
Tue May 10 13:58:21 [conn5] fsync from getlasterror | |
Tue May 10 13:58:22 [conn1] CMD fsync: sync:1 lock:0 | |
Tue May 10 13:58:22 [conn1] fsync from getlasterror | |
Tue May 10 13:58:22 [conn1] CMD fsync: sync:1 lock:0 | |
Tue May 10 13:58:22 [conn1] fsync from getlasterror | |
Tue May 10 13:58:22 [snapshotthread] Assertion failure _newer._created > _older._created db/stats/snapshots.cpp 39 | |
0x54e8de 0x55f971 0x5f6dbb 0x5f825d 0x542deb 0x5446a4 0x8b6a40 0x7f213d25365d 0x7f213c848e1d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thu Mar 17 19:03:41 [snapshotthread] cpu: elapsed:4000 writelock: 0% | |
Thu Mar 17 19:03:45 [snapshotthread] cpu: elapsed:4000 writelock: 0% | |
Thu Mar 17 19:03:48 [conn47] CMD fsync: sync:1 lock:0 | |
Thu Mar 17 19:03:48 [conn47] fsync from getlasterror | |
Thu Mar 17 19:03:48 [conn47] CMD fsync: sync:1 lock:0 | |
Thu Mar 17 19:03:48 [conn47] fsync from getlasterror | |
Thu Mar 17 19:03:49 [snapshotthread] cpu: elapsed:4000 writelock: 0% | |
Thu Mar 17 19:03:50 [conn47] CMD fsync: sync:1 lock:0 | |
Thu Mar 17 19:03:50 [conn47] fsync from getlasterror | |
Thu Mar 17 19:03:50 [conn49] CMD fsync: sync:1 lock:0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thu Mar 17 18:16:53 [mongosMain] connection accepted from 192.168.246.51:37862 #28 | |
Thu Mar 17 18:16:53 [mongosMain] connection accepted from 192.168.246.51:37863 #29 | |
Thu Mar 17 18:16:53 BackgroundJob starting: | |
Thu Mar 17 18:16:53 [conn29] setShardVersion rs1 rs1/192.168.246.120,192.168.246.121 de.sku { setShardVersion: "de.sku", configdb: "192.168.246.120:27217,192.168.246.121:27217,192.168.246.123:27217", version: Timestamp 159000|0, serverID: ObjectId('4d824134e15129f1e5e5ab01'), shard: "rs1", shardHost: "rs1/192.168.246.120,192.168.246.121" } 0xb5d7c0 | |
Thu Mar 17 18:16:53 [conn29] setShardVersion success! | |
Thu Mar 17 18:16:53 BackgroundJob starting: | |
Thu Mar 17 18:16:53 [conn29] setShardVersion rs2 rs2/192.168.246.122,192.168.246.123 de.sku { setShardVersion: "de.sku", configdb: "192.168.246.120:27217,192.168.246.121:27217,192.168.246.123:27217", version: Timestamp 159000|3, serverID: ObjectId('4d824134e15129f1e5e5ab01'), shard: "rs2", shardHost: "rs2/192.168.246.122,192.168.246.123" } 0 |
NewerOlder