Code Monkey home page Code Monkey logo

epheme's Introduction

Hi ๐Ÿ‘‹ I'm the Systems Librarian at California College of the Arts Libraries. As such, I maintain and develop a number of library and learning technologies, including a Koha ILS, Summon discovery layer, LibGuides, openEQUELLA repository, Panopto video platform, Moodle LMS, Wagtail website, and several smaller applications. I publish much of my code under CCA's GitHub organization.

I enjoy using and contributing to open source software. Some of my favorite work involves data munging, data visualization, metadata wrangling, full-stack web development, and integrating disparate systems using APIs. My favorite programming languages are Python and JavaScript.

I'm an active member of the Code4Lib community and tend to volunteer at every annual conference. If you see me, say hi! Meeting new folks is always welcome.

my github statistics

epheme's People

Contributors

phette23 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

epheme's Issues

breaks if passed string with spaces in it

MongoDB doesn't allow spaces in DB names. Error:

Traceback (most recent call last):
  File "./epheme.py", line 136, in <module>
    archive = Epheme(args.text, args.images)
  File "./epheme.py", line 30, in __init__
    self.db = MongoClient()[text]
  File "/Users/phette23/code/epheme/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1320, in __getitem__
    return self.__getattr__(name)
  File "/Users/phette23/code/epheme/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1309, in __getattr__
    return database.Database(self, name)
  File "/Users/phette23/code/epheme/lib/python2.7/site-packages/pymongo/database.py", line 79, in __init__
    _check_name(name)
  File "/Users/phette23/code/epheme/lib/python2.7/site-packages/pymongo/database.py", line 43, in _check_name
    "character %r" % invalid_char)
pymongo.errors.InvalidName: database names cannot contain the character ' '

gunzip downloaded images

Twitter's servers send some of the images as application/x-gzip files (e.g. see https://pbs.twimg.com/media/B0AsATdCEAAbbnP.jpg โ€” after download, exiftool reports x-gzip as MIME Type). The files just need to be unzipped to be accessed but the best way to do that is up for debate:

  • function that runs through the images dir unzipping each after the download stage (easy, but another stage, slow)
  • try to stream responses through an unzip process (less easy, probably requires a new dependency)
  • see if Twitter follows HTTP headers requesting uncompressed content (probably one line of code, trivially larger download)

I'm leaning toward an HTTP Accept: image/* header if it works.

Dockerfile

because this seems like a good learning project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.