http://www.raspberrypi.org/phpBB3/
在磁盘中创建备份目录 mkdir /media/usbdisk/mactimebak 推荐使用ext4分区(打开notime)
安装nettalk
http://www.raspberrypi.org/phpBB3/
在磁盘中创建备份目录 mkdir /media/usbdisk/mactimebak 推荐使用ext4分区(打开notime)
安装nettalk
Example /etc/nginx/nginx.conf
using FastCGI (e.g. to PHP-FPM) with FastCGI cache enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching.
Will need to create a directory to hold cache files, for the example given here that would be:
$ sudo mkdir -p /var/cache/nginxfastcgi
$ chown www-data: /var/cache/nginxfastcgi
import sys | |
from hashlib import md5 | |
from swiftclient.client import get_auth, put_container, put_object | |
from swift.common.utils import json | |
def write_part(url, token, container, i): | |
body = 'VERIFY%0.2d' % i + '\x00' * 1048576 | |
part_name = 'manifest_part_%0.2d' % i |
import time | |
import os | |
import uuid | |
import random | |
from swift.container.backend import ContainerBroker | |
from swift.common.utils import normalize_timestamp | |
INSERT_COUNT = 200 |
''' | |
rate_limit2.py | |
Copyright 2014, Josiah Carlson - josiah.carlson@gmail.com | |
Released under the MIT license | |
This module intends to show how to perform standard and sliding-window rate | |
limits as a companion to the two articles posted on Binpress entitled | |
"Introduction to rate limiting with Redis", parts 1 and 2: |
#!/usr/bin/env python | |
import benchmark | |
import cPickle as pickle | |
import hashlib | |
import os | |
import xattr | |
PILE_O_METADATA = pickle.dumps(dict( | |
("attribute%d" % i, hashlib.sha512("thingy %d" % i).hexdigest()) |
Proxy cache passes GET instead of HEAD to upstream... so we have a 403.
This version include these fixes.
The fundamental unit in PyTorch is the Tensor. This post will serve as an overview for how we implement Tensors in PyTorch, such that the user can interact with it from the Python shell. In particular, we want to answer four main questions:
PyTorch defines a new package torch
. In this post we will consider the ._C
module. This module is known as an "extension module" - a Python module written in C. Such modules allow us to define new built-in object types (e.g. the Tensor
) and to call C/C++ functions.
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <stdint.h> | |
#include <algorithm> | |
#include <vector> | |
//======================== Perfect hash generator ========================= | |