Git Product home page Git Product logo

clj-codetip's People

Contributors

ddormer avatar jonathanj avatar mithrandi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clj-codetip's Issues

Pastes expiries give SQL exception

When pastes are supposed to expire the below SQL exception happens instead:

Jan 13, 2016 1:32:07 PM clojure.tools.logging$eval1$fn__5 invoke
INFO: {:ssl-client-cert nil, :remote-addr 192.168.10.51, :params {}, :headers {host pastebin.domain.here, accept-language en-US,en;q=0.5, if-modified-since Wed, 03 Jun 2015 12:52:50 GMT, user-agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0, accept-encoding gzip, deflate, connection keep-alive, accept image/png,image/*;q=0.8,*/*;q=0.5}, :server-port 80, :content-length nil, :content-type nil, :character-encoding nil, :uri /static/codetip.svg, :server-name pastebin.domain.here, :query-string nil, :body #<HttpInput org.eclipse.jetty.server.HttpInput@32b47030>, :multipart-params {}, :db-conn {:connection #<SQLiteConnection org.sqlite.SQLiteConnection@5c993556>, :connection-uri jdbc:sqlite:codetip.db}, :scheme :http, :request-method :get}
java.sql.SQLException: database connection closed
    at org.sqlite.core.CoreConnection.checkOpen(CoreConnection.java:261)
    at org.sqlite.jdbc3.JDBC3Connection.getAutoCommit(JDBC3Connection.java:140)
    at clojure.java.jdbc$db_transaction_STAR_.doInvoke(jdbc.clj:574)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at clj_codetip.database$delete_expired_pastes_BANG_.invoke(database.clj:30)
    at clj_codetip.database$_schedule_paste_expiry$fn__12177.invoke(database.clj:37)
    at chime$chime_at$fn__12139$state_machine__10400__auto____12140$fn__12142$fn__12148.invoke(chime.clj:68)
    at clojure.core.async$thread_call$fn__10579$fn__10580.invoke(async.clj:390)
    at clojure.core.async$thread_call$fn__10579.invoke(async.clj:390)
    at clojure.lang.AFn.run(AFn.java:22)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Any insights would be appreciated.

Allow pasting of image data

Ideally clj-codetip should allow for pasting of image data. Some support already appears to be there, since a "Drag files here" highlight appears when you drag things into the content field. However, presently it appears to be rendered out as text.

Access paste as plain text

Having the ability to view/download a paste as plain text may be useful, similar to the "Raw" functionality in GitHub's Gists.

Include cdn assets as submodule

It would be nice to have the cdn assets included here as a submodule, and the references in the view changed to reflect that.

Enable line wrapping

Currently long lines are not soft-wrapped, I don't see any reason not to wrap them by default.

Character encoding issues

Pasting a non-ASCII character seems to result in mojibake (at a guess, the browser is sending UTF-8, but codetip is decoding as ISO-8859-1).

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.