<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Js on Noetic Nought</title>
    <link>https://punchagan.muse-amuse.in/tags/js/</link>
    <description>Recent content in Js on Noetic Nought</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© 2006-2026 CC-BY-SA-4.0</copyright>
    <lastBuildDate>Mon, 11 Nov 2013 12:36:53 +0530</lastBuildDate>
    <atom:link href="https://punchagan.muse-amuse.in/tags/js/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A smarter 404 page</title>
      <link>https://punchagan.muse-amuse.in/blog/a-smarter-404-page/</link>
      <pubDate>Mon, 11 Nov 2013 12:36:53 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/a-smarter-404-page/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://twitter.com/avudem&#34;&gt;Voodoo&lt;/a&gt; found a broken link referring to a one of my posts, on Quora.&#xA;Given that I have changed my site generator a bunch of times now, it&#xA;is quite possible that there are other broken links at various other&#xA;places.  So, I implemented a smart &lt;a href=&#34;https://punchagan.muse-amuse.in/hack&#34;&gt;404 page&lt;/a&gt; for the site, yesterday.&#xA;It is very similar to something I came across on &lt;a href=&#34;http://brettterpstra.com/2013/04/07/fun-with-intelligent-404-pages/&#34;&gt;brettterpstra&lt;/a&gt;&amp;rsquo;s site.&#xA;I just hooked up &lt;a href=&#34;http://kiro.me/projects/fuse.html&#34;&gt;fuse.js&lt;/a&gt; with Nikola&amp;rsquo;s &lt;a href=&#34;http://getnikola.com/handbook.html#local-search&#34;&gt;tipue-search plugin&lt;/a&gt;&amp;rsquo;s output&#xA;file.  My glue code essentially, just figures out the search term from&#xA;the URL, performs a Fuse search on the json data created by Nikola&amp;rsquo;s&#xA;search plugin, and returns a list of top 5 results.  It just took me&#xA;about an hour to write, but is pretty useful, I think.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://punchagan.muse-amuse.in/hack&#34;&gt;(View source of the 404 page)&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
