Skip to content

Instantly share code, notes, and snippets.

View sethwoodworth's full-sized avatar

Seth Woodworth sethwoodworth

View GitHub Profile
@sethwoodworth
sethwoodworth / keybase.md
Created April 13, 2014 22:01
keybase.md

Keybase proof

I hereby claim:

  • I am sethwoodworth on github.
  • I am sethwolfwood (https://keybase.io/sethwolfwood) on keybase.
  • I have a public key whose fingerprint is 80C6 8870 9587 EBB0 C280 2C90 C81E 7A58 0405 1696

To claim this, I am signing this object:

@sethwoodworth
sethwoodworth / sets.partial.py
Created August 11, 2013 02:30
python 2.7 sets.Set update based on iterable method
def _update(self, iterable):
# The main loop for update() and the subclass __init__() methods.
data = self._data
# Use the fast update() method when a dictionary is available.
if isinstance(iterable, BaseSet):
data.update(iterable._data)
return
value = True
@sethwoodworth
sethwoodworth / index.html
Last active December 19, 2015 14:09 — forked from enjalot/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Testing Pie Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script>
<style type="text/css">
.slice text {
@sethwoodworth
sethwoodworth / mm3d Tapioca All
Last active December 18, 2015 19:19
MicMac error message
» mm3d Tapioca MulScale '.*.JPG' 2500 6 Circ=1
--------------------------------------------------
| KIND OF ERR : User's error
| Sorry, the following FATAL ERROR happened
|
| LArgMain , Don't understand :[Circ=1]
|
--------------------------------------------------
Bye (tape enter to quit)
{
"name": "Accounting and Management",
"children": [
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},

### How would your project help to further humanities research?

(e.g. it will make more content and data openly available for researchers to use, it will produce novel insights into humanities data through visualisations...) *

GITenberg will improve the quality of Public Domain transcriptions of books by treating books like open source code. The GITenberg project has compiled an archive of 40,000 public domain ebooks, and by applying open source software tools and techniques to these texts,

class Ebook():
def set_author(self, element):
self.author = element.text
def set_pubdate(self, element):
self.pubdate = element.text
lookup_table = {
'pg:author ...': self.set_author,
'pg:pubdate ...': self.set_pub_date
@sethwoodworth
sethwoodworth / gist:4081245
Created November 15, 2012 21:03
haystack error
www.finalsclub.org:/var/www/beta [master*] $ ./manage.py update_index
Indexing 12 schools.
ERROR:pysolr:[Reason: None]
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /><title>Error 400 ERROR: [doc=notes.school.1] unknown field 'name'</title></head><body><h2>HTTP ERROR 400</h2><p>Problem accessing /solr/update/. Reason:<pre> ERROR: [doc=notes.school.1] unknown field 'name'</pre></p><hr /><i><small>Powered by Jetty://</small></i>
@sethwoodworth
sethwoodworth / stacktrace
Created October 5, 2012 03:58
gitenberg error
folder path: /media/gitenberg/2/3/4/1/23411
/media/gitenberg/2/3/4/1/23411/Smaïn; and Safti's Summer Day 1905.json
/media/gitenberg/2/3/4/1/23411
<git.Repo "/media/gitenberg/2/3/4/1/23411/.git">
['23411-8.txt', '23411-h/23411-h.htm', '23411.txt', 'CONTRIBUTING.md', 'LICENSE', 'README.rst', '"Sma\
\303\\257n; and Safti\'s Summer Day 1905.json"', 'metadata.json']
23411-8.txt
23411-h/23411-h.htm
23411.txt
CONTRIBUTING.md
./manage.py migrate notes
Running migrations for notes:
- Migrating forwards to 0006_auto__add_field_userprofile_hash.
> notes:0004_auto__add_field_userprofile_hash
FATAL ERROR - The following SQL query failed: ALTER TABLE "notes_userprofile" ADD COLUMN "hash" varchar(255) NOT NULL;
The error was: column "hash" contains null values
! Error found during real run of migration! Aborting.
! Since you have a database that does not support running