November 09, 2007 Archives

Fri Nov 9 03:51:54 UTC 2007

Integrating Disqus with Nanoblogger

A long time ago I added comments onto this blog with Haloscan. Then when I upgraded, I didn't bother to keep the customisation …

Today I read an Uncov post about Disqus that wasn't negative (a miracle for Uncov), so I decided to give it a go.

The default javascript invocation tries to hook to the right comment thread by looking at the current page URL, but this fails badly on my index page. After a little help from the (seemingly brand new) developer forums, I'm now force-feeding the entry URL, converting anchored tags into literals, and life seems good …

~nb/templates/entry.htm

...
<div class="posted">
 <br />$template_postedby <span class="item-creator">$NB_EntryAuthor</span>
$([ "$PERMALINKS" = "1" ] && echo '| <a class="link" href="'${ARCHIVES_PATH}$NB_EntryPermalink'">'$template_permlink'</a>')
$([ ! -z "$NB_EntryCategories" ] && echo "| $template_catlinks $NB_EntryCategories" |sed -e '{$ s/\,$//; }')
 <div class="commentengine">
  <div id="disqus_thread"></div>
   <script type="text/javascript">
    var disqus_url = 'http://nb.inode.co.nz/archives/$(echo $NB_EntryPermalink|tr \# \?)';
    var disqus_title = '$NB_EntryTitle';
   </script>
   <script type="text/javascript" src="http://disqus.com/forums/notabene/embed.js"></script>
   <noscript><a href="http://notabene.disqus.com/?url=ref">View the forum thread.</a></noscript>
  </div>
 </div>
</div>
...

Posted by Jim Cheetham | Permanent Link

Fri Nov 9 03:38:13 UTC 2007

Carrion Beetles

The wierdest things turn out to be really cool …

From http://www.insectpod.com comes … the Carrion Beetle!!

Howard's faourite quote was

As with any healthy relationship, the first thing the young couple must do is hide the body.
Mine is the next bit …
Over the next 24 hours, they bury the corpse and dig a crypt around it, stopping to mate, on average, about 70 times. (Ah, newlyweds!)

But wait, what's that underneath?


Posted by Jim Cheetham | Permanent Link