<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Wordpress on Noetic Nought</title>
    <link>https://punchagan.muse-amuse.in/tags/wordpress/</link>
    <description>Recent content in Wordpress on Noetic Nought</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© 2006-2026 CC-BY-SA-4.0</copyright>
    <lastBuildDate>Sat, 15 Jan 2011 00:00:00 +0530</lastBuildDate>
    <atom:link href="https://punchagan.muse-amuse.in/tags/wordpress/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>What&#39;s up with org2blog?</title>
      <link>https://punchagan.muse-amuse.in/blog/whats-up-with-org2blog/</link>
      <pubDate>Sat, 15 Jan 2011 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/whats-up-with-org2blog/</guid>
      <description>&lt;p&gt;Another post on &lt;code&gt;org2blog&lt;/code&gt;.  Yes, the project is still alive. ;)&#xA;Well, frankly quite a few people seem to be using it, and I&#xA;regularly get bug-reports and feature requests.  I&amp;rsquo;m happy. :)&lt;/p&gt;&#xA;&lt;p&gt;Actually, this post is to announce a change in the namespace of&#xA;&lt;strong&gt;my&lt;/strong&gt; org2blog.  It turns out that there is another package that is&#xA;called org2blog, but it posts to blogger.  Tehom, the author of&#xA;the other package got in touch with me, and we tried to clean up a&#xA;few things.  In this process, we decided to use two different&#xA;namespaces, to avoid conflicts if a particular user has both the&#xA;packages loaded.  I am going to use &lt;code&gt;org2blog/wp&lt;/code&gt; as my namespace&#xA;prefix, instead of the older &lt;code&gt;org2blog&lt;/code&gt;.  So, if you are posting a&#xA;sub-tree, you&amp;rsquo;ll need to use the &lt;code&gt;org2blog/wp-post-subtree&lt;/code&gt;&#xA;function, instead of &lt;code&gt;org2blog-post-subtree&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;We, Tehom and I, did discuss the possibility of merging the two&#xA;packages into a single huge package, but we think the amount of&#xA;work is far greater than the payoffs.  So, the packages continue&#xA;to be called &lt;code&gt;org2blog&lt;/code&gt; but we reference each others packages, to&#xA;reduce the confusion, amongst users.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;org2blog/wp&lt;/code&gt; version 0.4 comes with the new namespace.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>WP to org-mode &#43; hyde &#43; disqus</title>
      <link>https://punchagan.muse-amuse.in/blog/wp-to-org-mode-hyde-disqus/</link>
      <pubDate>Fri, 22 Oct 2010 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/wp-to-org-mode-hyde-disqus/</guid>
      <description>&lt;p&gt;Hello World!&lt;/p&gt;&#xA;&lt;p&gt;My first post at my new home.  Obviously, it was going to be about the&#xA;move.  You knew it, didn&amp;rsquo;t you? ;)&lt;/p&gt;&#xA;&lt;p&gt;Well, I got some space on the web, along with a few friends.  Thanks to&#xA;my org-mode fanboyism, I now use it to maintain my homepage.  I&amp;rsquo;ve&#xA;successfully completed import of my Wordpress posts and comments. :)&lt;/p&gt;&#xA;&lt;h2 id=&#34;i-now-use&#34;&gt;I now use&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Emacs and Org-mode &lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; to write my posts.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;org-hyde.el&lt;/code&gt; &lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt; to publish &lt;code&gt;html&lt;/code&gt; in a &lt;code&gt;hyde&lt;/code&gt;&#xA;parse-able format.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;hyde&lt;/code&gt; &lt;sup id=&#34;fnref:3&#34;&gt;&lt;a href=&#34;#fn:3&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;3&lt;/a&gt;&lt;/sup&gt; to convert the &lt;code&gt;html&lt;/code&gt; pages into a blog.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;org-publish&lt;/code&gt; to publish other pages in my home page.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git&lt;/code&gt; &lt;sup id=&#34;fnref:4&#34;&gt;&lt;a href=&#34;#fn:4&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;4&lt;/a&gt;&lt;/sup&gt; and a &lt;code&gt;bash&lt;/code&gt; script for publishing.&lt;/li&gt;&#xA;&lt;li&gt;Disqus &lt;sup id=&#34;fnref:5&#34;&gt;&lt;a href=&#34;#fn:5&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;5&lt;/a&gt;&lt;/sup&gt; for the comment system.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Yes, I know it sounds rather complicated. :) But, now that I&#xA;have it set up, it&amp;rsquo;s not all that difficult to make a post.&#xA;It&amp;rsquo;s just a matter of one &lt;code&gt;git commit&lt;/code&gt; and &lt;code&gt;push&lt;/code&gt;.  I need to&#xA;fine-tune the shell script a bit, though.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-i-moved&#34;&gt;How I moved&lt;/h2&gt;&#xA;&lt;p&gt;The move definitely wasn&amp;rsquo;t trivial.  I guess, I could&amp;rsquo;ve started&#xA;afresh but, what fun would that have been? ;)&lt;/p&gt;&#xA;&lt;p&gt;This roughly how I did things &amp;ndash; in the order that I did them.&lt;/p&gt;&#xA;&lt;h3 id=&#34;choosing-hyde&#34;&gt;Choosing &lt;code&gt;hyde&lt;/code&gt;&lt;/h3&gt;&#xA;&lt;p&gt;I looked at a handful of options to maintain a blog, using&#xA;org-mode &amp;mdash; &lt;code&gt;blorg&lt;/code&gt;, &lt;code&gt;org-jekyll&lt;/code&gt;, &lt;code&gt;blorgit&lt;/code&gt;, &lt;code&gt;ikiwiki&lt;/code&gt;.&#xA;After some assessment, I decided upon &lt;code&gt;org-jekyll&lt;/code&gt; and&#xA;&lt;code&gt;jekyll&lt;/code&gt;.  But then, I accidentally stumbled upon &lt;code&gt;hyde&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I decided to go with &lt;code&gt;hyde&lt;/code&gt; instead of &lt;code&gt;jekyll&lt;/code&gt; &lt;sup id=&#34;fnref:6&#34;&gt;&lt;a href=&#34;#fn:6&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;6&lt;/a&gt;&lt;/sup&gt;&#xA;since&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It&amp;rsquo;s in Python.  I didn&amp;rsquo;t want to start figuring out Ruby,&#xA;now.&lt;/li&gt;&#xA;&lt;li&gt;It uses Django templates &lt;sup id=&#34;fnref:7&#34;&gt;&lt;a href=&#34;#fn:7&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;7&lt;/a&gt;&lt;/sup&gt;.  And Django is&#xA;something, I wish to learn.  I&amp;rsquo;ve started with that. :)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;clean-up-org-jekyll-to-work-with-hyde-dot&#34;&gt;Clean up &lt;code&gt;org-jekyll&lt;/code&gt; to work with &lt;code&gt;hyde&lt;/code&gt;.&lt;/h3&gt;&#xA;&lt;p&gt;I then &amp;ldquo;ported&amp;rdquo; &lt;code&gt;org-jekyll.el&lt;/code&gt; into &lt;code&gt;org-hyde.el&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;removed stuff like categories and languages, that I was not&#xA;going to use.&lt;/li&gt;&#xA;&lt;li&gt;Added some code w.r.t timestamps, from org2blog, to it, so&#xA;that my older &lt;code&gt;org2blog&lt;/code&gt; posts could be easily ported.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;clean-up-older-org2blog-posts&#34;&gt;Clean up older org2blog posts&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;org2blog&lt;/code&gt; can post either buffers or subtrees.  I had posts in&#xA;both formats.  I converted all of them into subtrees of one&#xA;tree, using some Python.&lt;/p&gt;&#xA;&lt;h3 id=&#34;import-older-posts&#34;&gt;Import older posts&lt;/h3&gt;&#xA;&lt;p&gt;This was the most painful posts.  Importing all the old posts&#xA;from Wordpress.  &lt;code&gt;org-mode&lt;/code&gt; really needs a XHTML/XML importer!&lt;/p&gt;&#xA;&lt;p&gt;I did all sorts of crazy stuff to get this done.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;used pandoc to convert html to &lt;code&gt;markdown&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;wrote some throw away regex code to convert &lt;code&gt;markdown&lt;/code&gt; to&#xA;&lt;code&gt;org-mode&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;wrote more regex code to convert &lt;code&gt;html&lt;/code&gt; to &lt;code&gt;org-mode&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;hacked up a lot of stuff and finally got all the posts into&#xA;&lt;code&gt;org&lt;/code&gt; format! :)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;a-workflow-for-publishing&#34;&gt;A workflow for publishing&lt;/h3&gt;&#xA;&lt;p&gt;Set up &lt;code&gt;git&lt;/code&gt; along with some &lt;code&gt;bash&lt;/code&gt; code, to have a mechanism&#xA;to minimize the effort in making a blog post.  All this is&#xA;still a lot of work, compared to the ease with which I used to&#xA;use &lt;code&gt;org2blog&lt;/code&gt;.  That&amp;rsquo;s partly due to &lt;code&gt;ssh&lt;/code&gt; restrictions in my&#xA;hostel.&lt;/p&gt;&#xA;&lt;h3 id=&#34;css-clean-up&#34;&gt;CSS clean-up&lt;/h3&gt;&#xA;&lt;p&gt;I&amp;rsquo;m using the same CSS for &lt;code&gt;org-mode&lt;/code&gt; published files and&#xA;&lt;code&gt;hyde&lt;/code&gt; published files. I had to clean up my &lt;code&gt;hyde&lt;/code&gt; templates&#xA;and the CSS to make both of them look similar.&lt;/p&gt;&#xA;&lt;p&gt;My first tryst with CSS hasn&amp;rsquo;t been all that bad. :)&lt;/p&gt;&#xA;&lt;h3 id=&#34;installing-disqus-and-importing-comments&#34;&gt;Installing disqus and importing comments&lt;/h3&gt;&#xA;&lt;p&gt;Using disqus was one thing, I wasn&amp;rsquo;t sure I wanted to do.  I&#xA;would&amp;rsquo;ve loved it if comments could be managed with org-mode&#xA;too. ;) &lt;sup id=&#34;fnref:8&#34;&gt;&lt;a href=&#34;#fn:8&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#xA;&lt;p&gt;Anyway, I finally decided to go with it, and I&amp;rsquo;m quite happy&#xA;with it. :)&lt;/p&gt;&#xA;&lt;p&gt;I loved the ease with which comments could be imported.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Import Wordpress comments using the export &lt;code&gt;xml&lt;/code&gt; file.&lt;/li&gt;&#xA;&lt;li&gt;Generate a CSV file containing the URL map &amp;ndash; mapping the&#xA;newer urls to the older ones.&lt;/li&gt;&#xA;&lt;li&gt;Upload the CSV file and tada!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;I got to learn quite a few things, during all of this.  I also&#xA;have some bits of code, that I can share with you, in case you&#xA;are interested.  Leave a comment, if you wish. :)&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m just hoping to reduce the additional steps required in&#xA;publishing to ensure it doesn&amp;rsquo;t add to my already erratic&#xA;blogging habits.&lt;/p&gt;&#xA;&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;&#xA;&lt;hr&gt;&#xA;&lt;ol&gt;&#xA;&lt;li id=&#34;fn:1&#34;&gt;&#xA;&lt;p&gt;Org-mode - Homepage&amp;#160;&lt;a href=&#34;#fnref:1&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:2&#34;&gt;&#xA;&lt;p&gt;Org-hyde is a &lt;em&gt;port&lt;/em&gt; of org-jekyll.el&amp;#160;&lt;a href=&#34;#fnref:2&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:3&#34;&gt;&#xA;&lt;p&gt;Hyde - Github&amp;#160;&lt;a href=&#34;#fnref:3&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:4&#34;&gt;&#xA;&lt;p&gt;Git - Homepage&amp;#160;&lt;a href=&#34;#fnref:4&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:5&#34;&gt;&#xA;&lt;p&gt;Disqus - Homepage&amp;#160;&lt;a href=&#34;#fnref:5&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:6&#34;&gt;&#xA;&lt;p&gt;Github - Jekyll&amp;#160;&lt;a href=&#34;#fnref:6&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:7&#34;&gt;&#xA;&lt;p&gt;Documentation - Django Templates&amp;#160;&lt;a href=&#34;#fnref:7&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li id=&#34;fn:8&#34;&gt;&#xA;&lt;p&gt;I feel it is capable of doing that. It&amp;rsquo;s just my incapability that prevented me from trying it out.&amp;#160;&lt;a href=&#34;#fnref:8&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/div&gt;&#xA;</description>
    </item>
    <item>
      <title>Lesson with RSS feeds &amp; Wordpress</title>
      <link>https://punchagan.muse-amuse.in/blog/lesson-with-rss-feeds-wordpress/</link>
      <pubDate>Wed, 04 Aug 2010 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/lesson-with-rss-feeds-wordpress/</guid>
      <description>&lt;p&gt;In a world of (RSS &amp;amp; Atom) feeds, deleting your posts is not the&#xA;way to do it.&lt;/p&gt;&#xA;&lt;p&gt;First re-post using no content and give the post some time for it&#xA;to be caught by the feed aggregators. Then, delete your post.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;:&#xA;This&#xA;post also has similar advice.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>org2blog annoyance</title>
      <link>https://punchagan.muse-amuse.in/blog/org2blog-annoyance/</link>
      <pubDate>Tue, 03 Aug 2010 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/org2blog-annoyance/</guid>
      <description>&lt;p&gt;I hate it when I&amp;rsquo;m trying out things with org2blog - fixing bugs&#xA;or adding features - and my testing buffer gets posted. Why do I&#xA;keep passing the prefix argument with C-u? I should probably&#xA;work with a local instance of WordPress.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Update Script</title>
      <link>https://punchagan.muse-amuse.in/blog/update-script/</link>
      <pubDate>Tue, 08 Jul 2008 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/update-script/</guid>
      <description>&lt;p&gt;Well, this isn&amp;rsquo;t an update of how I&amp;rsquo;m doing on my sabbatical. Its&#xA;just been 3 days and I&amp;rsquo;m doing pretty fine.  I just finished&#xA;writing a script to keep my blogs page in sync with my&#xA;google-reader (well not exactly). The script parses an xml export&#xA;of my google-reader-subscriptions and updates the edits the html&#xA;of my unnought-blogs page. period.&lt;/p&gt;&#xA;&lt;p&gt;There are a couple of things I don&amp;rsquo;t like about this script.&lt;/p&gt;&#xA;&lt;p&gt;Firstly, I don&amp;rsquo;t want to keep exporting my&#xA;google-reader-subscription each time I make changes. The script&#xA;should be able to directly sync with my google-reader without me&#xA;having to export the file.  [I have read about the atom&#xA;subscriptions feed of Google Reader, but haven&amp;rsquo;t been able to get&#xA;it right.] Hopefully, I&amp;rsquo;ll be able to do it in the near future.&lt;/p&gt;&#xA;&lt;p&gt;Secondly, The blog author&amp;rsquo;s name is non-existent. I can&amp;rsquo;t do&#xA;anything about this though.&lt;/p&gt;&#xA;&lt;p&gt;Also, In the process, I had the chance to look a geeky ad. I found&#xA;it at the weirdest of places!&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;header: X-hacker: If you&amp;rsquo;re reading this, you should visit&#xA;automattic.com/jobs and apply to join the fun, mention this&#xA;header.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;ps :&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The source is GPLv2 licensed.&lt;/li&gt;&#xA;&lt;li&gt;Get in touch, if you&amp;rsquo;d like to have a look.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;</description>
    </item>
    <item>
      <title>A Second Blog...</title>
      <link>https://punchagan.muse-amuse.in/blog/a-second-blog/</link>
      <pubDate>Wed, 04 Apr 2007 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/a-second-blog/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;It can&amp;rsquo;t really be called a Second Blog&amp;hellip; because I won&amp;rsquo;t be&#xA;posting any new stuff there&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;I just started it to have a Wordpress experience&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;I started it to know.. to compare&amp;hellip; and to choose&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;I started it just for fun&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;I started it because Blogspot may soon be blocked on campus!!!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
  </channel>
</rss>
