Go to my website https://aelzenaar.github.io/
aelzenaar / bucephalus Goto Github PK
View Code? Open in Web Editor NEWLaTeX document store
License: MIT License
LaTeX document store
License: MIT License
Go to my website https://aelzenaar.github.io/
Currently the two prototypes (asst.mustache and note.mustache) have a lot of shared TeX; it should be possible to shift this out into an include file somehow.
This may require a shift from mustache to jinja for bucvac so we can do this in Python - TeX does not make it easy to change search paths for \input commands!
Can a -u
command be added to bucadd
(similar to that for bucvac
) so that bucfup
can be removed?
Instead of storing file.tex and file.pdf like YYYY/MM/DD/src/file.tex
and YYYY/MM/DD/file.pdf
, store them like YYYY/MM/DD/file/file.tex
and YYYY/MM/DD/file/file.pdf
. This allows us to serve support files (e.g. images) along with the files themselves, allowing us to properly implement #9 .
Change remove_record_by_id
so that when removing files, the ID is marked as 'deleted'.
The server can be changed to return a 410 error when such a file is accessed.
timestamp_for_item
in web/server.py does not zero fill dates to two chars, only times.
Currently, every subroutine which wants to access database.db
will open its own database instance. This should be moved into its own function in dbops, so that we can globally change database opening parameters like indent
.
Indeed, incorrect usage of subsectioning commands in the amsart document class can cause loss of marks (a cautionary tale)!
(Depends on #3.)
Add support for outputting an HTML render rather than a PDF render from bucvac upon adding. This will also require testing to make sure that HTML outputs are rendered correctly by the browser in the iframe, otherwise we may need to do some mimetype fiddling like the small piece of code already in server.py that handles markdown.
On /v/ pages, the next/prev links should point to (for example) the next/previous day with articles. (This will require us to pass the list of items in each db entry around.)
Inside the database, there will be a `chains' table which points to the first article in each chain; then each item in the chain will be linked (1) back to the chains table entry, and (2) to both the next and previous items as a doubly-linked list.
Code like this:
if year == None:
years = []
for item in db:
if not(item['ts_year'] in years):
years.append(item['ts_year'])
return sorted(years)
Belongs on tdwtf (does anyone still read that? :o). Iterating through every item in the database just to enumerate the possible values of 'ts_year' tags? Really? We need to cache this, and every place where this kind of pattern occurs, before my database gets too big.
Possible implementation: add an additional table in the database to store [years/months/whatever], add a command-line to update it manually (based on iterating the full db), and update it whenever we add/update an article (i.e. check whether the year attached to the article is in the table, if not add it).
Nice easy one: for convenience, every way of adding files should print out the docid of the new database entry.
When adding files via bucvac, the source .tex file is not actually added to the database.
If two articles with the same name exist, any search which matches both will only return one of the two.
This feature would consist of two parts:
buctask
, for tag management. (This tool could also handle chain management, for #2).A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.