1 of 15

Forth Haiku Comments using Disqus + Blog

October 25, 2014

2 of 15

Forth Haiku

  • Fragment Shader expressed in Forth variant
  • Community editing / evolution of small programs
  • Anonymous and “tagged” posting

3 of 15

Forth Haiku

4 of 15

How to Communicate?

  • Contacting the author is hard
  • Sharing with other users
  • Bugs

A forum?

5 of 15

Goals

  • Allow users to comment on Haiku
  • Discourage / manage spam
  • Option to personally moderate
  • Option to change how it’s done
  • Don’t use up my quota
  • Allow similar level of anonymity to posting Haiku

6 of 15

Old Plan

  • Improve Forth Haiku to support commenting inline
  • Use OpenID for login, possibly optional
  • Manually vet spam
  • Hope I don’t go over-quota

7 of 15

Eli’s Blog

  • Noticed Eli Bendersky’s Blog has a forum
  • Noticed he also dropped wordpress in favor of Pelican
  • -> Disqus

http://eli.thegreenplace.net/

8 of 15

Disqus

  • Farm out your forum
  • Client side injection
  • Easy integration
  • Rich UI + spam filter + owner interface
  • XML export option
  • Allow anonymous posts

9 of 15

Disqus - Used By

  • San Jose Mercury News
  • Politico
  • ABC News

10 of 15

Integration

<div id="disqus_thread"></div>

<script type="text/javascript">

/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */

var disqus_shortname = 'short_name';

var disqus_identifier = 'unique_id';

var disqus_title = 'title';

var disqus_url = 'url';

/* * * DON'T EDIT BELOW THIS LINE * * */

(function() {

var dsq = document.createElement('script'); dsq.type = 'text/javascript';

dsq.async = true;

dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';

(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();

</script>

<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

11 of 15

Blog

  • Old Blog integrated into Forth Haiku
    • Haiku was meant to be decoration for blog!
  • 3 posts in 3 years
  • Posting interface based on posting short things on the go

12 of 15

Forth Haiku Blog Changes

  • Drop built-in blog
  • Reference separate blog site with iframe
  • Switch blog to statically generated html
  • Generate with Python script

13 of 15

Blog Editing

ARTICLES = [

{

'title': 'Multiple Prototypes',

'date': 'October 14, 2014',

'topics': ['Smalltalk', 'Javascript'],

'summary': """\

...

""",

'rest': """\

""",

},

]

14 of 15

Demo + Questions

15 of 15