www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - mood : simple vibe.d based blog implementation

reply "Dicebot" <public dicebot.lv> writes:
A bit more details - 
https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing

Project repo - https://github.com/Dicebot/mood
Branch which powers actual blog.dicebot.lv - 
https://github.com/Dicebot/mood/tree/blog.dicebot.lv

Copy of feature list for quick overview:

- stand-alone binary with minimal external dependencies
- simple deployment under dedicated posix user
- straightforward code, minimal to none configurability - fork 
instead
- basic features include publishing posts, tags and RESTful API 
for data model
- with -version=MoodWithPygmentize does out of the box code 
highlighting if `pygmentize` is on $PATH
- no JavaScript
- HTTPS-only
- no database needed, articles can be edited as simple Markdown 
files

Feedback is always welcome but I must warn you that it can easily 
take months before I address it ;)
Aug 14 2015
next sibling parent reply "David Nadlinger" <code klickverbot.at> writes:
On Friday, 14 August 2015 at 18:51:33 UTC, Dicebot wrote:
 - HTTPS-only
By the way, Firefox on Mac does not recognize your TLS certificate as valid. – David
Aug 14 2015
parent reply "Dicebot" <public dicebot.lv> writes:
On Friday, 14 August 2015 at 18:55:19 UTC, David Nadlinger wrote:
 On Friday, 14 August 2015 at 18:51:33 UTC, Dicebot wrote:
 - HTTPS-only
By the way, Firefox on Mac does not recognize your TLS certificate as valid. – David
Yeah, I am aware of that issue, need to embed signature chains of my CA (from other CA) into certificate as it is not that commonly installed by default. Will address ASAP.
Aug 14 2015
parent "Dicebot" <public dicebot.lv> writes:
On Friday, 14 August 2015 at 19:01:47 UTC, Dicebot wrote:
 On Friday, 14 August 2015 at 18:55:19 UTC, David Nadlinger 
 wrote:
 On Friday, 14 August 2015 at 18:51:33 UTC, Dicebot wrote:
 - HTTPS-only
By the way, Firefox on Mac does not recognize your TLS certificate as valid. – David
Yeah, I am aware of that issue, need to embed signature chains of my CA (from other CA) into certificate as it is not that commonly installed by default. Will address ASAP.
Should work now.
Aug 14 2015
prev sibling next sibling parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Friday, 14 August 2015 at 18:51:33 UTC, Dicebot wrote:
 A bit more details - 
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing
huh, this doesn't look awful. I've been thinking about starting a fancier blog but I hate all blog software too. So I just write html files but that's a moderate pain so I was going to write my own and just haven't gotten around to it. Anyway, I might try this. (and i might not, NIH and all. :D )
Aug 14 2015
prev sibling next sibling parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 08/14/2015 02:51 PM, Dicebot wrote:
 A bit more details -
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing
Nice. One thing: can i haz rss/atom plz?
Aug 14 2015
next sibling parent reply "Dicebot" <public dicebot.lv> writes:
On Friday, 14 August 2015 at 20:50:16 UTC, Nick Sabalausky wrote:
 On 08/14/2015 02:51 PM, Dicebot wrote:
 A bit more details -
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing
Nice. One thing: can i haz rss/atom plz?
https://blog.dicebot.lv/posts.rss https://github.com/Dicebot/mood/blob/master/source/mood/rendering/rss.d But I don't think it actually works yet - haven't even tested it with any RSS client. Just quick proof of concept.
Aug 14 2015
parent reply "ChangLong" <changlon gmail.com> writes:
On Friday, 14 August 2015 at 20:57:22 UTC, Dicebot wrote:
 On Friday, 14 August 2015 at 20:50:16 UTC, Nick Sabalausky 
 wrote:
 On 08/14/2015 02:51 PM, Dicebot wrote:
 A bit more details -
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing
Nice. One thing: can i haz rss/atom plz?
https://blog.dicebot.lv/posts.rss https://github.com/Dicebot/mood/blob/master/source/mood/rendering/rss.d But I don't think it actually works yet - haven't even tested it with any RSS client. Just quick proof of concept.
With third party Javascript comments system and image upload will be perfect.
Aug 14 2015
parent reply "wobbles" <grogan.colin gmail.com> writes:
On Saturday, 15 August 2015 at 02:07:59 UTC, ChangLong wrote:
 On Friday, 14 August 2015 at 20:57:22 UTC, Dicebot wrote:
 On Friday, 14 August 2015 at 20:50:16 UTC, Nick Sabalausky 
 wrote:
 On 08/14/2015 02:51 PM, Dicebot wrote:
 A bit more details -
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing
Nice. One thing: can i haz rss/atom plz?
https://blog.dicebot.lv/posts.rss https://github.com/Dicebot/mood/blob/master/source/mood/rendering/rss.d But I don't think it actually works yet - haven't even tested it with any RSS client. Just quick proof of concept.
With third party Javascript comments system and image upload will be perfect.
Why need third party / javascript for a comment system? The vibe-d forums have a (quite nice I think) forum and as far as I know, no js.
Aug 15 2015
parent "ChangLong" <changlon gmail.com> writes:
On Saturday, 15 August 2015 at 08:25:41 UTC, wobbles wrote:
 Why need third party / javascript for a comment system? The 
 vibe-d forums have a (quite nice I think) forum and as far as I 
 know, no js.
third party / javascript can be ready for few minute, with social media support. A vibe-d solution will be great.
Aug 21 2015
prev sibling parent "Dicebot" <public dicebot.lv> writes:
On Friday, 14 August 2015 at 20:50:16 UTC, Nick Sabalausky wrote:
 On 08/14/2015 02:51 PM, Dicebot wrote:
 A bit more details -
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing
Nice. One thing: can i haz rss/atom plz?
Actually I have just tested it and seems to work in my thunderbird RSS reader. You can apply tag filters to RSS feed too : https://blog.dicebot.lv/posts.rss?tag=code
Aug 18 2015
prev sibling next sibling parent reply "wobbles" <grogan.colin gmail.com> writes:
On Friday, 14 August 2015 at 18:51:33 UTC, Dicebot wrote:
 A bit more details - 
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing

 Project repo - https://github.com/Dicebot/mood
 Branch which powers actual blog.dicebot.lv - 
 https://github.com/Dicebot/mood/tree/blog.dicebot.lv

 Copy of feature list for quick overview:

 - stand-alone binary with minimal external dependencies
 - simple deployment under dedicated posix user
 - straightforward code, minimal to none configurability - fork 
 instead
 - basic features include publishing posts, tags and RESTful API 
 for data model
 - with -version=MoodWithPygmentize does out of the box code 
 highlighting if `pygmentize` is on $PATH
 - no JavaScript
 - HTTPS-only
 - no database needed, articles can be edited as simple Markdown 
 files

 Feedback is always welcome but I must warn you that it can 
 easily take months before I address it ;)
Nice work! Load times are excellent. I've been meaning to do something like this for ages, never got the time. I'll just use this now. How open to pull requests / alterations are you? I might try to do up a comment system for it.
Aug 15 2015
parent reply "Dicebot" <public dicebot.lv> writes:
On Saturday, 15 August 2015 at 08:28:59 UTC, wobbles wrote:
 Nice work! Load times are excellent.

 I've been meaning to do something like this for ages, never got 
 the time.
 I'll just use this now. How open to pull requests / alterations 
 are you? I might try to do up a comment system for it.
Sure, as long as it fits general idea / goals. Comment system is welcome but it can be quite challenging within existing design. Right now I am using immutable cache for all data which gets completely rebuilt (and saved to disk) as soon as any new article is added. Which allows for cheap parallel access to data from multiple worker threads without any synchronization and doesn't harm performance as adding articles is rare and only done by blog owner. For comments that generally won't work - adding those can happen often and is up to users. I think best approach would be to have dedicated thread that owns all comment data and have worker threads communicate with it via message passing - and make it generally independent from immutable storage. Also save data on disk periodically and not immediately. Or maybe just say that this pushes NIH syndrome too much and require external database to enable comment support. Not sure. This is pretty much why I haven't implemented it yet :)
Aug 15 2015
parent "Dicebot" <public dicebot.lv> writes:
P.S. I have added license statement (Boost) for those who care.
Aug 15 2015
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/14/15 2:51 PM, Dicebot wrote:
 A bit more details -
 https://blog.dicebot.lv/posts/2015/08/In_the_mood_for_some_releasing

 Project repo - https://github.com/Dicebot/mood
 Branch which powers actual blog.dicebot.lv -
 https://github.com/Dicebot/mood/tree/blog.dicebot.lv

 Copy of feature list for quick overview:

 - stand-alone binary with minimal external dependencies
 - simple deployment under dedicated posix user
 - straightforward code, minimal to none configurability - fork instead
 - basic features include publishing posts, tags and RESTful API for data
 model
 - with -version=MoodWithPygmentize does out of the box code highlighting
 if `pygmentize` is on $PATH
 - no JavaScript
 - HTTPS-only
 - no database needed, articles can be edited as simple Markdown files

 Feedback is always welcome but I must warn you that it can easily take
 months before I address it ;)
Tried to submit this, someone already did: https://www.reddit.com/r/programming/comments/3hbvrb/mood_simp e_vibed_based_blog/ -- Andrei
Aug 17 2015
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 8/17/2015 10:00 AM, Andrei Alexandrescu wrote:
 Tried to submit this, someone already did:
 https://www.reddit.com/r/programming/comments/3hbvrb/mood_simple_vibed_based_blog/
 -- Andrei
Dicebot, please post something there describing Mood to start the discussion.
Aug 17 2015
parent "Dicebot" <public dicebot.lv> writes:
On Monday, 17 August 2015 at 20:00:34 UTC, Walter Bright wrote:
 On 8/17/2015 10:00 AM, Andrei Alexandrescu wrote:
 Tried to submit this, someone already did:
 https://www.reddit.com/r/programming/comments/3hbvrb/mood_simple_vibed_based_blog/
 -- Andrei
Dicebot, please post something there describing Mood to start the discussion.
Sure.
Aug 18 2015