Skip to content

Instantly share code, notes, and snippets.

(mediapublic3)thequbit@tim-thinkpad-t550:~/dev/mediapublic/server$ python setup.py develop
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from setuptools import setup
File "/home/thequbit/Envs/mediapublic3/lib/python3.4/site-packages/setuptools/__init__.py", line 11, in <module>
from setuptools.extension import Extension
File "/home/thequbit/Envs/mediapublic3/lib/python3.4/site-packages/setuptools/extension.py", line 8, in <module>
from .dist import _get_unpatched
File "/home/thequbit/Envs/mediapublic3/lib/python3.4/site-packages/setuptools/dist.py", line 18, in <module>
from setuptools import windows_support
Some fun Census/Election math for your reading pleasure
( TL;DR, get out there and vote, people! ):
As of 2014, eligible voters (18+ and a citizen) who live in
household that make $0 - $75K a year represent 74M people,
or 58% of eligible voters.
Eligible voters who live in households that make $75K+ a year
represent 53M people, or 41% of eligible voters.
UPDATE
jobs j
SET
in_process = TRUE,
start_run_datetime = now()
FROM (
SELECT
jobs.id
FROM
jobs
#!/bin/sh
# build all the things
export PATH=~/Vivado/SDK/2014.4/gnu/arm/lin/bin:$PATH
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
cd
#git clone https://github.com/Xilinx/u-boot-xlnx
May 29 10:35:32 tim-t550 kernel: python[25292]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25195]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25122]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25192]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25275]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25295]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25123]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
May 29 10:35:32 tim-t550 kernel: python[25215]: segfault at 11965568 ip 00000000004cd0ab sp 00007ffc6fad2390 error 4 in python[
Indexing document with Elastic Search ...
Done indexing
Sanitizing PDF ...
Reading PDF ...
Splitting PDF into multiple pdf's for processing ...
Writing out 3 pages ...
Dispatching pdf workers ...
0: Getting page from queue ...
0: working on page 0
0: An error has occured:
import urllib2
import json
from bs4 import BeautifulSoup
def get_station_info(index, api_key):
try:
url = "http://api.npr.org/v2/stations/org/{0}?apiKey={1}".format(index, api_key)
content = urllib2.urlopen(url).read()
a = {
'first' : {
'second': {
'final': 4,
},
},
}
a = {}
if not 'first' in a:
a['first'] = {}
if not 'second' in a['first']:
a['first']['second'] = {}
a['first']['second']['final'] = 4
try
{
string json = r.ReadToEnd();
backplaneConfiguration = JsonConvert.DeserializeObject<BackplaneConfiguration>(json);
}
catch (JsonSerializationException jex)
{
// specificly JsonSerializationException
}
catch (Exception ex)