Re: mood : simple vibe.d based blog implementation

2015-08-21 Thread ChangLong via Digitalmars-d-announce

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.




Re: mood : simple vibe.d based blog implementation

2015-08-18 Thread Dicebot via Digitalmars-d-announce

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.


Re: mood : simple vibe.d based blog implementation

2015-08-17 Thread Andrei Alexandrescu via Digitalmars-d-announce

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_simple_vibed_based_blog/ 
-- Andrei


Re: mood : simple vibe.d based blog implementation

2015-08-17 Thread Walter Bright via Digitalmars-d-announce

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.


Re: mood : simple vibe.d based blog implementation

2015-08-15 Thread wobbles via Digitalmars-d-announce

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.


Re: mood : simple vibe.d based blog implementation

2015-08-15 Thread wobbles via Digitalmars-d-announce

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.


Re: mood : simple vibe.d based blog implementation

2015-08-15 Thread Dicebot via Digitalmars-d-announce

P.S. I have added license statement (Boost) for those who care.


Re: mood : simple vibe.d based blog implementation

2015-08-15 Thread Dicebot via Digitalmars-d-announce

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 :)


Re: mood : simple vibe.d based blog implementation

2015-08-14 Thread David Nadlinger via Digitalmars-d-announce

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


Re: mood : simple vibe.d based blog implementation

2015-08-14 Thread Adam D. Ruppe via Digitalmars-d-announce

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 )


mood : simple vibe.d based blog implementation

2015-08-14 Thread Dicebot via Digitalmars-d-announce
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 ;)


Re: mood : simple vibe.d based blog implementation

2015-08-14 Thread Dicebot via Digitalmars-d-announce

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.


Re: mood : simple vibe.d based blog implementation

2015-08-14 Thread Dicebot via Digitalmars-d-announce

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.


Re: mood : simple vibe.d based blog implementation

2015-08-14 Thread Nick Sabalausky via Digitalmars-d-announce

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?


Re: mood : simple vibe.d based blog implementation

2015-08-14 Thread ChangLong via Digitalmars-d-announce

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.