srndv2
building:
go get -u -v github.com/majestrate/srndv2/cmd/nntpchan
some random news daemon (version 2)
License: MIT License
building:
go get -u -v github.com/majestrate/srndv2/cmd/nntpchan
This is long over due.
Here is RFC 3977:
o Header values SHOULD use US-ASCII or an encoding based on it, such
as RFC 2047 [RFC2047], until such time as another approach has
been standardised. At present, 8-bit encodings (including UTF-8)
SHOULD NOT be used because they are likely to cause
interoperability problems
UTF-8 SHOULD NOT be used without " =?utf-8?q?this is some text?=
But, This specification extends NNTP from US-ASCII to UTF-8.
Should we use =?utf-8?q??=
When a new thread is created it potentially creates a new page, but currently this results in this error:
board page should not exist
because the new page isn't added to the board model.
Whenever I update i have to stop the daemon, git pull and recompile, the process is unacceptably too long.
I think we need a way to reload the daemon live via signal, i.e. SIGUSR1
Can't touch the running binary executable so this would require a wrapper program that loads/unloads a shared library module ? Some other way?
Hello. I am working at diploma about your nntpchan. It is Java implementation.
We have problem with links in messages, like this:
>>fc346a235
We need NNTP format for links => convertation from your local
articles:message_id_hash ... to ... global message-id of NNTP.
When you feed(peering) with NNTP.
I will public my full work when it will be completed. See you.
right now I use a global singleton instance for generating templates which is a piss poor implementation.
there are right now, models, templates, cache.
models are in memory instances that hold state but also can render themselves
templates are like views, they render models by wrapping a model's rendering
cache is just a cache
ideally I'd like to use a classical MVC architecture but this would require reworking most of the frontend code as it is now.
this has been put off for waaaay too long
You have broke something in new commits
with Content-Disposition recognition.
I have such:
Content-Disposition: attachment; filename="name.png"
You can't display thumbnail.
Look at test board.
When creating 100s posts at once, I received:
{"error":"pq: sorry, too many clients already"} && {"error":"pq: remaining connection slots are reserved for non-replication superuser connections"}
rate limit is fine but needs to be documented. Rate-limiting to one every 100ms seemed to get around this.
through nntp, I see this does exist
http://nsfl.tk/api/header?name=X-Mongo-ID&value=57260140c984bafa4cd5499e
but web api is returning []
Send "500\n" or "говно\n" to maintain stream connection once in 1-2 min. Make it neatly. Do not send it in the middle of another transfer.
This is especially helpful when the post rate is really low with frequent netsplits.
introduced redis backend in 1301dad but lacks range ban capability.
when doing sync, sometimes the root post is expired before we can get it so we have a bunch of replies with no root post.
ideally if we can't resolve these root posts the orphaned replies should be expired.
In the postgres driver there are several instances of
page / int64(perpage)
which are converted to int again. This may lead to problems with floating point precision.
This is especially true for
( count / 10 ) + 1
Let's say you have exactly 10 threads here, so with this code you may end up with the unexpected result of 2 pages.
The correct way to handle this, would be to use math.Ceil
existing captcha is probably too weak so we'd need to implement a better one.
Network latency and slow nodes tend to cause pages to jump since loading an image of unknown height and width causes reflow.
/usr/bin/identify
is an ImageMagick command that returns the name, file type, width x height, [some weird string that has the width and height in it], bit depth (?), color space (?), file size, [some thing I don't understand], [some thing I don't understand].
$ /usr/bin/identify nntpchan.png
nntpchan.png PNG 2508x2043 2508x2043+0+0 8-bit sRGB 282KB 0.000u 0:00.000
If this information can be provided to templates, it will help improve usability.
Posting this for example locks the whole thing up for a few seconds.
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.