Git Product home page Git Product logo

ck's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on... applied cryptography ๐Ÿ” in Rust and Move
  • ๐ŸŒฑ Iโ€™m currently learning... about quantum computing :atom:
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on...
    • Low-latency decentralized random beacons from verifiable delay functions (VDFs) ๐ŸŽฒ
    • Account management in cryptocurrencies ๐Ÿ‘จ
  • ๐Ÿค” Iโ€™m looking for help with... my citation keys, ck, tool for bibliography management ๐Ÿ“š
  • ๐Ÿ’ฌ Ask me about... motorcycles ๐Ÿ๏ธ!
  • ๐Ÿ“ซ How to reach me: DM on Twitter at @alinush407
  • โšก Fun fact: "Life is short, ride a motorcycle!"

ck's People

Contributors

alinush avatar aluex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ck's Issues

ScienceDirect fails

Describe the bug

alint@alint-a01 [~/repos/bibtags/by-tags] (master %) $ ck add https://www.sciencedirect.com/science/article/pii/0022000084900709 GM84
Traceback (most recent call last):
  File "/Users/alint/repos/ck/ck", line 937, in <module>
    ck(obj={})
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/alint/repos/ck/ck", line 248, in ck_add_cmd
    handler(opener, soup, parsed_url, ck_bib_dir, destpdffile, destbibfile, parser, user_agent, verbosity)
  File "/Users/alint/repos/ck/citationkeys/urlhandlers.py", line 166, in sciencedirect_handler
    pdf_redirect_url = elem['content']
TypeError: 'NoneType' object is not subscriptable

To Reproduce
ck add https://www.sciencedirect.com/science/article/pii/0022000084900709 GM84

Expected behavior
Should've downloaded PDF and .bib file, but failed w/ exception.

Desktop (please complete the following information):

  • OS: OS X Catalina

Prompt disappear when writing tags

The prompt disappear when writing tags

To Reproduce
Steps to reproduce the behavior:

  1. ck a https://eprint.iacr.org/2020/248.pdf
  2. write many tags to fill the current line
  3. the prompt disappears

Expected behavior
The prompt should stay.

Screenshots
Screenshot from 2020-09-08 14-53-22

Desktop (please complete the following information):

  • OS: Linux
  • Browser: None
  • Version: master

ck read failed

Describe the bug

alin@alin-a01 [~/] (master) $ ck read BMMV19
Added 'q' tag
Added 'u' tag
Added 'e' tag
Unexpected error while tagging BMMV19 with '/
Traceback (malinost recent call last):
  File "/Users/alin/repos/ck/citationkeys/tags.py", line 186, in tag_paper
    os.symlink(os.path.join(ck_bib_dir, pdfname), os.path.join(pdf_tag_dir, pdfname))
OSError: [Errno 30] Read-only file system: '/Users/alin/Dropbox/Papers/BMMV19.pdf' -> '/BMMV19.pdf'
Traceback (most recent call last):
  File "/Users/alin/repos/ck/ck", line 1164, in <module>
    ck(obj={})
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/alin/repos/ck/ck", line 444, in ck_read_cmd
    ctx.invoke(ck_tag_cmd, silent=True, citation_key=citation_key, tags="queue/reading")
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/alin/repos/ck/ck", line 646, in ck_tag_cmd
    if tag_paper(ck_tag_dir, ck_bib_dir, citation_key, tag):
  File "/Users/alin/repos/ck/citationkeys/tags.py", line 186, in tag_paper
    os.symlink(os.path.join(ck_bib_dir, pdfname), os.path.join(pdf_tag_dir, pdfname))
OSError: [Errno 30] Read-only file system: '/Users/alin/Dropbox/Papers/BMMV19.pdf' -> '/BMMV19.pdf'

To Reproduce
See log above.

Desktop (please complete the following information):

  • OS: OS X Catalina

Additional context
Paper was tagged with #queue/to-read

ck bib -m outputs "in \url{}" when .bib file has \howpublished={\url{...}}

To Reproduce

alint@alint-a01 [~/private-repos/expenses] (master) $ ck bib -m BLL02e
[^BLL02e]: **Eliminating Counterevidence with Applications to Accountable Certificate Management**, by Buldas, Ahto and Laud, Peeter and Lipmaa, Helger, *in \url{http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.21.5161&rep=rep1&type=pdf}*, 2002, [[URL]](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.21.5161&rep=rep1&type=pdf)

Copied to clipboard!

Expected behavior
The in \url{} stuff should not be there, but the \howpublished tag confuses ck, I think.

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.