blog-admin and Nikola

Another post about blogging.

blog-admin now supports Nikola, thanks to yours truly. blog-admin is an Emacs package by CodeFalling that lets you view and manage your (static site generated) blog from within inside Emacs.

Nikola's command line utility is pretty nifty and does a bunch of useful things. I had a few utility functions to do common tasks like create new post and deploy blog. This worked well, but moment I came across this blog-admin's tabular view, I was sold!

org2blog (a blogging tool I used previously) had a tracking file that kept track of all the posts I made, and I used it quite a bit for navigation – thanks to org-mode's search functionality. The tabular view of blog-admin is even better! I really like the fact that the author has tried to keep the package generic enough to support any blog, and adding support for Nikola has been quite easy.

The filtering functionality is crude, but good enough for a start. One thing I want to add is a preview functionality for drafts. Showing some (writing) statistics would also be nice – No. posts in the last month, total published posts, etc. No promises, but you may see some of these things, soon. :)

Org based posts in Nikola

Chen Bin asked me to share my Nikola+Org work-flow, and share an example post.

The org source for any post can be found by changing the URL of a post from .html to .org.

I don't have much of a work-flow, because I don't post too often, but here is what I typically do, to make a new post.

I start off by creating a new post using

$ nikola new_post

and then give the post a title and start editing the post in Emacs.

I have a simple snippet that lets me insert tags, based on existing tags.

Once I'm happy with the content of a post, I run nikola auto to build the source and serve it locally, and see if the post "looks" reasonable, after being rendered.

Once, I'm happy with it, I commit the post and deploy it using nikola deploy.

GITHUB_SOURCE_BRANCH = 'master'
GITHUB_DEPLOY_BRANCH = 'gh-pages'
GITHUB_REMOTE_NAME = 'origin'

# Commands to execute to deploy. Can be anything, for example,
# you may use rsync:
# "rsync -rav output/* joe@my.site:/srv/www/site"
# And then do a backup, or ping pingomatic.
# To do manual deployment, set it to []

I also have a plugin, that posts captured bookmarks and quotes onto the blog, with a single command. I should probably make the sources of my blog open, and push it onto GitHub.

Update [2015-05-13 Wed]

  • I use my own plugin for Nikola which lets me write posts in org-mode. There is a similar plugin by Chen Bin, that exports posts to intermediate html, that is then used by Nikola.
  • The source for my blog is now on GitHub
  • I also have custom elisp to be able to make a new post, and deploy the site from within Emacs.

Bookmarks and Quotes plugin

I used to have a separate page for bookmarks and quotes on the old blog. They will now be shared as regular posts with 5 or more bookmarks/quotes. I use a bookmarklet in my browser to capture links to an org-file using org-capture protocol and then I have a small plugin to Nikola, that looks at such captured bookmarks and quotes and makes new posts out of them. This workflow is inspired by Brett Trepestra's web excursions plugin.

The plugin is currently a part of my blog source, and not published to Nikola's plugin repository since it is very specific to my setup. But if anybody is interested, I can publish the code somewhere public.

If you are interested to get these links and bookmarks into your feed reader, you can subscribe to their feed: [quotes], bookmarks. These posts will also make it to the main feed, though.

UPDATE [2015-11-15 Sun 20:45]

  • The quotes feed no longer exists!
  • The bookmarks feed doesn't really get too many updates. I use pinboard for my bookmarks, now.

Blogging with Nikola and Org-mode

Sigh! I made yet another change to the way this blog gets published. But, I have a feeling this mechanism, is here to stay!

We've been using Nikola quite regularly for our Ultimate site, and I quite like it. I've also contributed a bunch of features to Nikola to get it to work the way I would like it to. This weekend I ported my blog from o-blog to Nikola. The only thing that was stopping me from doing it, until now is the fact that all my posts are in org markup and porting them over to one of the formats that Nikola supports would be a PITA. So, I wrote a pretty simple plugin to Nikola to support posting from org files. And then with a little Python, I was able to move everything over to use Nikola.

Hopefully, I'll keep my blog more updated, from here on!

Changes to Blog

Well, as you can see, I've changed my blog a bit. I had been trying to make it gel well with org-mode and looking for ways to allow me to share arbit stuff with separate feeds for tags, separate pages with independent feeds, etc.

I finally got around to tweaking the code of reprise to be able to do this. There are still a few things I would like to change, but I'll make the changes gradually. The looks are also straight from uddegal's [[reprise, with a few tiny tweaks. I hope it is alright to be using it. I really liked the theme.

Every tag now has a separate feed. /tags/emacs.atom will give you the feed of emacs for instance. Also, I plan to have a couple of more pages, one for all the interesting links I come across and another for interesting quotes. Both of these pages, have their own feeds too (quotes.atom and links.atom).

In the spirit of minimalism, I got rid of comments. I've been looking for ways of having comments without all the javascript cruft from disqus, but I didn't find any satisfactory way to do this. So, the site will have no comments. You can write to me, in case you've something to say to me.

Adios.

Windows©, Doors or Homes!??!

A couple of days back.. one guy called green_mamba asked me.. "Why do you use Linux (GNU/Linux) and not Windows? What is it that makes LinuxGNU/Linux] so special for you?" I avoided that question then.. {I was in no mood of answering questions… Exams had finished just the day before!!} I am trying to answer it now… green_mamba also told me that Roopesh said, "I use it because I can look at the source code. I am allowed to look at how things work and fiddle with the way they work!"… I knew it immediately that this was not the reason for me.[I rarely looked at source code… and making changes to it.. haha..] So what is it? I think I can answer this question if I get back to the time when I started using Linux…[hehe.. not too long ago!! :P]

So how did I start using GNU/Linux? How did "we" first meet? It was during last summer holidays.. that Voods sent me this link … [I had definitely used GNU/Linux on a few occasions before… but.. this was when I really began using it…] and within hours I was a fan of GNU/Linux!![and Richard M Stallman (RMS)]

So its the "philosophy"… The philosophy of Free Software… [Free as in Freedom, not as in Free Beer…(English is a wierd wierd Language…)]… The philosophy of Open Source… that brought me to it… This song says it the best…

Free Software Song –RMS

Join us now and share the software;
You'll be free, hackers, you'll be free.

Join us now and share the software;
You'll be free, hackers, you'll be free.

Hoarders may get piles of money,
That is true, hackers, that is true.
But they cannot help their neighbors;
That's not good, hackers, that's not good.

When we have enough free software
At our call, hackers, at our call,
We'll throw out those dirty licenses
Ever more, hackers, ever more.

Join us now and share the software;
You'll be free, hackers, you'll be free.

Join us now and share the software;
You'll be free, hackers, you'll be free.

now I continue to use it.. for a variety of reasons..[they are NOT in the order of their priority/importance]

  • Firstly, using Linux gives me a sense of community… a sense of oneness [this can't happen with Windows.. because you can't share stuff… :-(]
  • I have begun to hate the concept of Proprietary Software… can you believe that.. "Sharing stuff.. makes us PIRATES!!"
  • I am a growing fan of the Command Line… It simply rocks!!
  • There's almost no problem of Viruses/Malware.. You simply don't need an Anti-Virus..(that needs to be updated every night.. or u'll have nightmares…)
  • Then there's this wonderful concept of Live-CDs.. {specially Knoppix.. Its absolutely awesome!} It put me(us?) out of soup… a lotta times…
  • The fiddle factor… I have just started to fiddle with things(…source codes… I added a small feature to my dc-client Microdc2].. the feature of away messages.. it feels gr8! :P)
  • One of my best friend is using it too! [you know who…]
  • The Mascot looks cool!! ;) [I liked the GNU mascot too! (It's on my side-bar) ]
  • The name "LINUX"!! [There's so many flavors(Distros) of Linux.. that I can keep trying different ones.. all my life :P.. presently with Slackware!]
  • Its Fun!! and I want to use it…
  • and finally… Windows sucks! [I don't have to use it… :P]!!

Value your freedom or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. –Richard Stallman

When you say, "I wrote a program that crashed Windows", people just stare at you blankly and say, "Hey, I got those with the system, for free". –Linus Torvalds

"What happens when you read some doc and either it doesn't answer your question or is demonstrably wrong? In Linux, you say "Linux sucks" and go read the code. In Windows/Oracle/etc you say "Windows sucks" and start banging your head against the wall." — Denis Vlasenko on linux kernel mailing list

"The box said that I needed to have Windows 98 or better… so I installed Linux." – LinuxNewbie.org