lkellar / shelf Goto Github PK
View Code? Open in Web Editor NEWA place to temporarily store text without creating digital clutter
Home Page: https://lkellar.org/shelf
A place to temporarily store text without creating digital clutter
Home Page: https://lkellar.org/shelf
If a user puts in a really high number of days to expire (like 99999999
), python overflows and fails.
Probably the current thing to do here is to just set it to whatever the max is, and put a notice on the save screen
[Wed May 13 03:55:50.961870 2020] [wsgi:error] [pid 20001] [remote 192.168.0.1:55489] File "/var/www/shelf/shelf/db.py", line 42, in insert
[Wed May 13 03:55:50.961902 2020] [wsgi:error] [pid 20001] [remote 192.168.0.1:55489] expiry_date = utc_date + timedelta(days=ttl_days)
[Wed May 13 03:55:50.961934 2020] [wsgi:error] [pid 20001] [remote 192.168.0.1:55489] OverflowError: Python int too large to convert to C int
Allow the user to, via url query or something, automatically go to the URL if the text of the shelf if a url.
I've thought about letting the setter do it, but then the setter could tell the getter (assuming it's two different people), to go to it, and it's something terrible. One might say, getter beware, but I don't know if that's an attitude I'd like to have.
Unless there's a good way to do it that let's setter decide to redirect (without risk to the getter, either in bad content, or even malicious attacks), I'll probably go with allowing a user to do it. Maybe even just having another button appear on the page to instantly go to the link (or just hyperlink it too, but we've gotta be careful on that)
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.