Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.
Panel Dithering
/** | |
* | |
* In this example we create view with inplace and bulk editing. | |
* Tools and plugins: | |
* jQuery | |
* xEditable jquery plugin | |
* twitter bootstrap | |
* | |
*/ |
# GOAL: On a CentOS 6.7 minimal install, set up nginx as a reverse proxy to uWSGI Emperor with python 2.7.11 as a plugin to run Flask apps | |
# ::NOTE:: All instructions below are run as a sudoer, not as root. Talk to your sysadmins if you're not a sudoer. | |
# Install bare essentials: | |
sudo yum install -y epel-release | |
sudo yum groupinstall 'Development Tools' | |
sudo yum install -y vim openssl unzip nginx openssl-devel zlib-devel sqlite-devel bzip2-devel libffi-devel lapack-devel blas-devel libpng-devel freetype-devel | |
# Set SELINUX=disabled in the file below, and reboot, or this tutorial will get unnecessarily complicated: |
create or replace function epoch_to_jd(float) RETURNS int as $$ | |
BEGIN | |
return ($1 / (24*3600) + 2440588)::int; | |
END; | |
$$ LANGUAGE plpgsql; | |
create or replace function timestamp_to_jd(timestamp with time zone) RETURNS int as $$ | |
BEGIN | |
return epoch_to_jd(extract (epoch from $1)); |
from kafka import ( | |
KafkaConsumer, TopicPartition, OffsetAndMetadata, ConsumerRebalanceListener | |
) | |
import queue | |
import threading | |
import time | |
import logging | |
log = logging.getLogger(__name__) |
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
------------ | |
-- Basics -- | |
------------ | |
-- Get indexes of tables |
{ | |
"provinces": [ | |
{ | |
"id": "AZE", | |
"name": "آذربايجان شرقي", | |
"cities": [ | |
{ | |
"id": "4", | |
"name": "تبریز", | |
"areas": [ |
#!/usr/local/bin/python3 | |
# @author cpuhrsch https://github.com/cpuhrsch | |
# @author Loreto Parisi [email protected] | |
import argparse | |
import numpy as np | |
from sklearn.metrics import confusion_matrix | |
def parse_labels(path): | |
with open(path, 'r') as f: |
# coding=utf8 | |
# This is a python implementation of the boolean expression algorithm | |
# described in the paper "Indexing Boolean Expressions" by Whong et al. | |
# https://theory.stanford.edu/~sergei/papers/vldb09-indexing.pdf | |
# Note this really only uses the index ideas from the paper, because the | |
# ctual algorithm it describes involves shuffling through lists, something | |
# which is extremely difficult to do efficiently in python. I went for the | |
# easier route of simply counting entries. As such, I don't give any |