references
Postgresql 9.3 logging documentation a psql_logging.
"""Simple TCP server for playing Tic-Tac-Toe game. | |
Use Player-to-Player game mode based on naming auth. | |
No thoughts about distribution or pub/sub mode | |
(for monitoring or something like this). Just | |
basic functionality. | |
""" | |
import time | |
import logging |
import logging | |
import sys | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) | |
#set streamhandler | |
ch = logging.StreamHandler(sys.stdout) | |
ch.setLevel(logging.DEBUG) | |
formatter = logging.Formatter('%(asctime)s -\ | |
%(name)s - %(levelname)s - %(message)s') | |
ch.setFormatter(formatter) |
from __future__ import print_function | |
from datetime import datetime | |
utc_timestamp = 1428148287.0 | |
date_object = datetime.utcfromtimestamp(utc_timestamp) | |
print (date_object.strftime("%Y/%m/%d %H-%M-%S")) |
references
Postgresql 9.3 logging documentation a psql_logging.
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
<?xml version='1.0' encoding='UTF-8'?> | |
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0"> | |
<rootfiles> | |
<rootfile media-type="application/oebps-package+xml" full-path="content.opf"/> | |
</rootfiles> | |
</container> |
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
from sre_parse import Pattern, SubPattern, parse as sre_parse | |
from sre_compile import compile as sre_compile | |
from sre_constants import BRANCH, SUBPATTERN | |
class Scanner(object): | |
def __init__(self, tokens, flags=0): | |
subpatterns = [] | |
pat = Pattern() |