<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Nanoblogger on Miek Gieben</title>
    <link>https://miek.nl/tags/nanoblogger/</link>
    <description>Recent content in Nanoblogger on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Thu, 21 May 2009 00:31:00 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/nanoblogger/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Short URLs</title>
      <link>https://miek.nl/2009/may/21/short-urls/</link>
      <pubDate>Thu, 21 May 2009 00:31:00 +0000</pubDate>
      <guid>https://miek.nl/2009/may/21/short-urls/</guid>
      <description>&lt;p&gt;Not wanting to miss anything on this &lt;a href=&#34;http://www.osnews.com/story/21502&#34;&gt;short urls business&lt;/a&gt;,&#xA;I&amp;rsquo;ve implemented something similar in nanoblogger.&lt;/p&gt;&#xA;&lt;p&gt;How? With a shell script and symlinks, my dear Watson. As with all&#xA;shell scripting this is probably something you can do drunk.&lt;/p&gt;&#xA;&lt;p&gt;First I need to get a list of all my articles so that I can link&#xA;to them. Next I take this &lt;em&gt;permalink&lt;/em&gt; address, pipe it through&#xA;&lt;code&gt;sha1sum&lt;/code&gt;, take the last 10 characters and make a symlink from the&#xA;permalink path and presto: &lt;strong&gt;short urls&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Related articles in nanoblogger</title>
      <link>https://miek.nl/2009/may/11/related-articles-in-nanoblogger/</link>
      <pubDate>Mon, 11 May 2009 20:24:00 +0000</pubDate>
      <guid>https://miek.nl/2009/may/11/related-articles-in-nanoblogger/</guid>
      <description>&lt;p&gt;All these wordpress blogs have a &lt;strong&gt;related articles&lt;/strong&gt; line below the&#xA;blog entries. Sadly &lt;code&gt;nanoblogger&lt;/code&gt; does not have such a capability, so&#xA;I wrote my own. It&amp;rsquo;s not a plugin in the nanoblogger sense of the word,&#xA;it may be possible to rewrite it as a regular plugin, but I do not now&#xA;how&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;So for now a simple shell script, which you can find&#xA;&lt;a href=&#34;https://miek.nl/downloads/2009/related.txt&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h1 id=&#34;usage-within-a-template&#34;&gt;Usage within a template&lt;/h1&gt;&#xA;&lt;p&gt;In your templates you should include the following:&lt;/p&gt;</description>
    </item>
    <item>
      <title>A &#39;more...&#39; link in nanoblogger</title>
      <link>https://miek.nl/2009/january/30/a-more...-link-in-nanoblogger/</link>
      <pubDate>Fri, 30 Jan 2009 17:36:00 +0000</pubDate>
      <guid>https://miek.nl/2009/january/30/a-more...-link-in-nanoblogger/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;Update (200911-08): I&amp;rsquo;ve stopped using&#xA;this, because it made the archive generating&#xA;fail in mysterious ways&amp;hellip;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;As you might have seen I have now these nice&#xA;(opinions may vary) &amp;ldquo;more&amp;hellip;&amp;rdquo; links in my blog.&#xA;This is done with some JavaScript and shell&#xA;foo and in this entry I will explain how I did it.&lt;/p&gt;&#xA;&lt;p&gt;The setup also works with text browsers and&#xA;people who disable JavaScript. In the latter&#xA;case you will get the normal &lt;code&gt;nb&lt;/code&gt; behavior&#xA;where you see the entire article. When using&#xA;a text browser you also see the entire article&#xA;but there is also a (non functional) &amp;lsquo;more&amp;rsquo; link.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nanoblogger comments (update)</title>
      <link>https://miek.nl/2009/january/26/nanoblogger-comments-update/</link>
      <pubDate>Mon, 26 Jan 2009 17:08:00 +0000</pubDate>
      <guid>https://miek.nl/2009/january/26/nanoblogger-comments-update/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;Basicly these blog items serve as a personal reminder&#xA;and documentation. Also the code needs to be refactored&#xA;a bit and some html tags need to be removed from it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h1 id=&#34;files-needed&#34;&gt;Files needed&lt;/h1&gt;&#xA;&lt;p&gt;The following files are needed for this comment system:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://miek.nl/downloads/2009/comment.php.2.txt&#34;&gt;comment.php&lt;/a&gt;, this&#xA;is &lt;em&gt;the&lt;/em&gt; PHP file the implements everything&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://miek.nl/downloads/2009/nbadmin.2.txt&#34;&gt;nbadmin&lt;/a&gt;, a small shell script that&#xA;implemented the comment moderation (just a &lt;code&gt;mv&lt;/code&gt; of the comment to&#xA;the correct directory)&lt;/p&gt;</description>
    </item>
    <item>
      <title>NB comments</title>
      <link>https://miek.nl/2009/january/24/nb-comments/</link>
      <pubDate>Sat, 24 Jan 2009 10:21:00 +0000</pubDate>
      <guid>https://miek.nl/2009/january/24/nb-comments/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve implemented a simple comment system in which&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;there are &lt;em&gt;no&lt;/em&gt; user accounts&lt;/li&gt;&#xA;&lt;li&gt;has a preview function&lt;/li&gt;&#xA;&lt;li&gt;once a comment is submitted you cannot edit it anymore&lt;/li&gt;&#xA;&lt;li&gt;all comments are moderated&lt;/li&gt;&#xA;&lt;li&gt;a small set of BB tags are allowed&lt;/li&gt;&#xA;&lt;li&gt;implemented as one &lt;code&gt;PHP&lt;/code&gt; file&lt;/li&gt;&#xA;&lt;li&gt;the &lt;code&gt;PHP&lt;/code&gt; script has some &lt;code&gt;html&lt;/code&gt; in it&lt;/li&gt;&#xA;&lt;li&gt;needs a writeable directory in your document root&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You need this file: &lt;a href=&#34;https://miek.nl/downloads/2009/comment.php.txt&#34;&gt;comment.php&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The first few lines allow for some customization:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nanoblogger comments</title>
      <link>https://miek.nl/2009/january/17/nanoblogger-comments/</link>
      <pubDate>Sat, 17 Jan 2009 23:56:00 +0000</pubDate>
      <guid>https://miek.nl/2009/january/17/nanoblogger-comments/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been thinking about comments on my blog ever since I started&#xA;using &lt;code&gt;nanoblogger&lt;/code&gt;. While &lt;code&gt;nb&lt;/code&gt; is great (with VIM and markdown) I&amp;rsquo;m&#xA;starting to miss the comment stuff.&lt;/p&gt;&#xA;&lt;h1 id=&#34;comment-systems-for-nb&#34;&gt;Comment systems for nb&lt;/h1&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been searching for a good comment system that &lt;em&gt;I&lt;/em&gt; want to use&#xA;for &lt;code&gt;nb&lt;/code&gt;. It should meet the following criteria:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Simple moderation system. With all the spam nowadays &lt;em&gt;every&lt;/em&gt;&#xA;comment made should be moderated.&lt;/li&gt;&#xA;&lt;li&gt;Should not require a database, the filesystem is enough of a&#xA;database to handle these tasks. This does imply that there will&#xA;be &lt;em&gt;no&lt;/em&gt; user accounts, nor the possibility to edit your comments.&lt;/li&gt;&#xA;&lt;li&gt;Simple interface with nanoblogger.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve looked at &lt;code&gt;blogkomm&lt;/code&gt;, &lt;code&gt;haloscan&lt;/code&gt; and &lt;code&gt;cgicomment&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Bash loadable modules</title>
      <link>https://miek.nl/2008/september/14/bash-loadable-modules/</link>
      <pubDate>Sun, 14 Sep 2008 20:24:00 +0000</pubDate>
      <guid>https://miek.nl/2008/september/14/bash-loadable-modules/</guid>
      <description>&lt;p&gt;Or how to create new builtins for use in &lt;code&gt;bash&lt;/code&gt;. Short answer: you can,&#xA;but it is not enabled by default (at least on my distribution, Ubuntu)&lt;/p&gt;&#xA;&lt;p&gt;This is also something that is done much better in &lt;code&gt;zsh&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Why do want this? &lt;em&gt;SPEED&lt;/em&gt;!&lt;/p&gt;&#xA;&lt;p&gt;Shell scripting is a very easy&#xA;way to program, but forking all these helper programs takes&#xA;a lot of time. So one way to speed up your shell program is&#xA;to load these programs into the shell and making them a &lt;em&gt;builtin&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nanoblogger plugin for tagcloud</title>
      <link>https://miek.nl/2007/december/31/nanoblogger-plugin-for-tagcloud/</link>
      <pubDate>Mon, 31 Dec 2007 13:48:00 +0000</pubDate>
      <guid>https://miek.nl/2007/december/31/nanoblogger-plugin-for-tagcloud/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve made a small plugin which generates a tag cloud for your&#xA;nb style blog. It&amp;rsquo;s probably a bit rough aroudn the edges, but&#xA;it works, as you can see on the right.&lt;/p&gt;&#xA;&lt;p&gt;You can fetch it &lt;a href=&#34;https://miek.nl/downloads/tagcloud.sh&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>gallery plugin</title>
      <link>https://miek.nl/2007/december/27/gallery-plugin/</link>
      <pubDate>Thu, 27 Dec 2007 15:29:00 +0000</pubDate>
      <guid>https://miek.nl/2007/december/27/gallery-plugin/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m using the &lt;a href=&#34;http://www.heirbaut.nl/category/projects/gallery-plugin/&#34;&gt;gallery plugin&lt;/a&gt;&#xA;for the photos on this site. This plugin&#xA;works great and easy, but there wasn&amp;rsquo;t an easy way to create a slide&#xA;show. So that you can click &amp;rsquo;next&amp;rsquo; and go to the next photo. So I&amp;rsquo;ve&#xA;added this functionality to the script.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m putting this up for download, so that other people may use this&#xA;too.  &lt;a href=&#34;https://miek.nl/downloads/gallery.sh&#34;&gt;gallery.sh&lt;/a&gt;&#xA;If you want to regenerate the slides, you can just remove the &lt;em&gt;html&lt;/em&gt; and&#xA;&lt;em&gt;slides&lt;/em&gt; directories.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
