Convert from old categories to tags
import sys
import yaml
with open(sys.argv[1]) as fp:
    data = fp.read()
if not data.find("---") == 0:
    # no head
    print("NO YAML HEAD FOUND")
    sys.exit(-1)
data = data[3:]
head_end = data.find("---")
head = data[0:head_end]
data = data[head_end+3:]
metadata = yaml.safe_load(head)
cats = metadata.pop('categories', None)
if cats != None:
    if type(cats) == list:
        tags = cats
    elif type(cats) == str:
        tags = cats.split()
    tags = list(map(lambda t: t.lower(), tags))
    metadata["tags"] = ", ".join(tags)
    new_data = f"---\n{yaml.dump(metadata, default_flow_style=False)}---{data}"
    # write it
    print(f"coverted: categories to tags: {tags} - {sys.argv[1]}")
    with open(sys.argv[1], "w") as fp:
        fp.write(new_data)
    sys.exit(0)
if not metadata.get("tags", None):
    metadata["tags"] = "untagged"
    new_data = f"---\n{yaml.dump(metadata, default_flow_style=False)}---{data}"
    print(f"untagged: {sys.argv[1]}")
    # write it
    with open(sys.argv[1], "w") as fp:
        fp.write(new_data)
    sys.exit(0)
print("No changes needed")
			
			
This commit is contained in:
		| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-03-21 01:23:00 | date: 2011-03-21 01:23:00 | ||||||
| layout: post | layout: post | ||||||
| slug: long-time | slug: long-time | ||||||
|  | tags: update, posterous | ||||||
| title: Long time. | title: Long time. | ||||||
| wordpress_id: 47145570 | wordpress_id: 47145570 | ||||||
| categories: Update Posterous |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Its been long time, Almost a year. Lots of things happened. Good and bad, I dont want to recollect and dump all the past here, But future, I promise you to speak about it, :-) | Its been long time, Almost a year. Lots of things happened. Good and bad, I dont want to recollect and dump all the past here, But future, I promise you to speak about it, :-) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-03-24 07:16:42 | date: 2011-03-24 07:16:42 | ||||||
| layout: post | layout: post | ||||||
| slug: school-memories | slug: school-memories | ||||||
|  | tags: friends | ||||||
| title: School Memories | title: School Memories | ||||||
| wordpress_id: 47147523 | wordpress_id: 47147523 | ||||||
| categories: Friends |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2011/03/81726-ron_01-jan-05_1-43-59.jpg) | [](http://dbalan.files.wordpress.com/2011/03/81726-ron_01-jan-05_1-43-59.jpg) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-03-26 21:25:00 | date: 2011-03-26 21:25:00 | ||||||
| layout: post | layout: post | ||||||
| slug: earth-hour-official-video | slug: earth-hour-official-video | ||||||
|  | tags: thoughts | ||||||
| title: Earth Hour | title: Earth Hour | ||||||
| wordpress_id: 47451256 | wordpress_id: 47451256 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [youtube http://www.youtube.com/watch?v=4Mxjbip6y04?wmode=transparent] | [youtube http://www.youtube.com/watch?v=4Mxjbip6y04?wmode=transparent] | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-03-26 20:58:00 | date: 2011-03-26 20:58:00 | ||||||
| layout: post | layout: post | ||||||
| slug: firefox | slug: firefox | ||||||
|  | tags: debian, 'free, software' | ||||||
| title: Firefox 4 | title: Firefox 4 | ||||||
| wordpress_id: 47448980 | wordpress_id: 47448980 | ||||||
| categories: Debian 'Free software' |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2011/03/144e7-firefox.png) | [](http://dbalan.files.wordpress.com/2011/03/144e7-firefox.png) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-04-01 06:08:00 | date: 2011-04-01 06:08:00 | ||||||
| layout: post | layout: post | ||||||
| slug: compski-night-firends-and-fun | slug: compski-night-firends-and-fun | ||||||
|  | tags: friends, trivandrum | ||||||
| title: Compski Night - Friends and Fun | title: Compski Night - Friends and Fun | ||||||
| wordpress_id: 48042401 | wordpress_id: 48042401 | ||||||
| categories: Friends Trivandrum |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2011/04/a9ff5-me.jpg)[](http://dbalan.files.wordpress.com/2011/04/9dafe-img_3093-20.jpg)[](http://dbalan.files.wordpress.com/2011/04/bfa6a-img_3093-17.jpg)[](http://dbalan.files.wordpress.com/2011/04/3bf0a-img_3093-0.jpg)[](http://dbalan.files.wordpress.com/2011/04/55f5c-img_3093-2.jpg)[](http://dbalan.files.wordpress.com/2011/04/2862a-img_3093-1.jpg)[](http://dbalan.files.wordpress.com/2011/04/827eb-img_3093-3.jpg)[](http://dbalan.files.wordpress.com/2011/04/ddc4c-img_3093-4.jpg)[](http://dbalan.files.wordpress.com/2011/04/76429-img_3093-9.jpg)[](http://dbalan.files.wordpress.com/2011/04/982f5-img_3093-5.jpg)[](http://dbalan.files.wordpress.com/2011/04/b882d-img_3093-12.jpg)[](http://dbalan.files.wordpress.com/2011/04/fa011-img_3093-10.jpg)[](http://dbalan.files.wordpress.com/2011/04/cce9a-img_3093-13.jpg)[](http://dbalan.files.wordpress.com/2011/04/93fa8-img_3093-21.jpg)[](http://dbalan.files.wordpress.com/2011/04/3f468-img_3093-7.jpg)[](http://dbalan.files.wordpress.com/2011/04/49cd8-img_3093-8.jpg)[](http://dbalan.files.wordpress.com/2011/04/5c51e-img_3093-6.jpg)[](http://dbalan.files.wordpress.com/2011/04/c37ae-img_3093-14.jpg)[](http://dbalan.files.wordpress.com/2011/04/fd4a4-img_3093-15.jpg)[](http://dbalan.files.wordpress.com/2011/04/349f1-img_3093-16.jpg)[](http://dbalan.files.wordpress.com/2011/04/84898-img_3093-18.jpg)[](http://dbalan.files.wordpress.com/2011/04/0abbb-img_3093-11.jpg) | [](http://dbalan.files.wordpress.com/2011/04/a9ff5-me.jpg)[](http://dbalan.files.wordpress.com/2011/04/9dafe-img_3093-20.jpg)[](http://dbalan.files.wordpress.com/2011/04/bfa6a-img_3093-17.jpg)[](http://dbalan.files.wordpress.com/2011/04/3bf0a-img_3093-0.jpg)[](http://dbalan.files.wordpress.com/2011/04/55f5c-img_3093-2.jpg)[](http://dbalan.files.wordpress.com/2011/04/2862a-img_3093-1.jpg)[](http://dbalan.files.wordpress.com/2011/04/827eb-img_3093-3.jpg)[](http://dbalan.files.wordpress.com/2011/04/ddc4c-img_3093-4.jpg)[](http://dbalan.files.wordpress.com/2011/04/76429-img_3093-9.jpg)[](http://dbalan.files.wordpress.com/2011/04/982f5-img_3093-5.jpg)[](http://dbalan.files.wordpress.com/2011/04/b882d-img_3093-12.jpg)[](http://dbalan.files.wordpress.com/2011/04/fa011-img_3093-10.jpg)[](http://dbalan.files.wordpress.com/2011/04/cce9a-img_3093-13.jpg)[](http://dbalan.files.wordpress.com/2011/04/93fa8-img_3093-21.jpg)[](http://dbalan.files.wordpress.com/2011/04/3f468-img_3093-7.jpg)[](http://dbalan.files.wordpress.com/2011/04/49cd8-img_3093-8.jpg)[](http://dbalan.files.wordpress.com/2011/04/5c51e-img_3093-6.jpg)[](http://dbalan.files.wordpress.com/2011/04/c37ae-img_3093-14.jpg)[](http://dbalan.files.wordpress.com/2011/04/fd4a4-img_3093-15.jpg)[](http://dbalan.files.wordpress.com/2011/04/349f1-img_3093-16.jpg)[](http://dbalan.files.wordpress.com/2011/04/84898-img_3093-18.jpg)[](http://dbalan.files.wordpress.com/2011/04/0abbb-img_3093-11.jpg) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-04-05 15:08:24 | date: 2011-04-05 15:08:24 | ||||||
| layout: post | layout: post | ||||||
| slug: sharing-the-posterous-way | slug: sharing-the-posterous-way | ||||||
|  | tags: college | ||||||
| title: Sharing the posterous way.. | title: Sharing the posterous way.. | ||||||
| wordpress_id: 48536674 | wordpress_id: 48536674 | ||||||
| categories: College |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| For people with no idea, This is our mathematics assignment, shared in | For people with no idea, This is our mathematics assignment, shared in | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-04-19 04:35:25 | date: 2011-04-19 04:35:25 | ||||||
| layout: post | layout: post | ||||||
| slug: bed-of-roses | slug: bed-of-roses | ||||||
|  | tags: trivandrum | ||||||
| title: Bed of Roses | title: Bed of Roses | ||||||
| wordpress_id: 50054557 | wordpress_id: 50054557 | ||||||
| categories: Trivandrum |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| ] | ] | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-04-20 11:56:22 | date: 2011-04-20 11:56:22 | ||||||
| layout: post | layout: post | ||||||
| slug: happy | slug: happy | ||||||
|  | tags: friends, thoughts | ||||||
| title: happy | title: happy | ||||||
| wordpress_id: 50200868 | wordpress_id: 50200868 | ||||||
| categories: Friends Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [hap-ee] adjective, -pier, -piest. | [hap-ee] adjective, -pier, -piest. | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-04-28 06:23:27 | date: 2011-04-28 06:23:27 | ||||||
| layout: post | layout: post | ||||||
| slug: adept | slug: adept | ||||||
|  | tags: thoughts | ||||||
| title: Adept | title: Adept | ||||||
| wordpress_id: 51072398 | wordpress_id: 51072398 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| We all want things to remain same, afraid of change always. set out to | We all want things to remain same, afraid of change always. set out to | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-05-02 03:42:58 | date: 2011-05-02 03:42:58 | ||||||
| layout: post | layout: post | ||||||
| slug: the-story-of-linux | slug: the-story-of-linux | ||||||
|  | tags: thoughts | ||||||
| title: The Story Of Linux | title: The Story Of Linux | ||||||
| wordpress_id: 51514829 | wordpress_id: 51514829 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [youtube http://www.youtube.com/watch?v=5ocq6_3-nEw?wmode=transparent] | [youtube http://www.youtube.com/watch?v=5ocq6_3-nEw?wmode=transparent] | ||||||
|   | |||||||
| @@ -4,12 +4,9 @@ comments: true | |||||||
| date: 2011-05-07 10:52:33 | date: 2011-05-07 10:52:33 | ||||||
| layout: post | layout: post | ||||||
| slug: gsoc-2011-i-am-in | slug: gsoc-2011-i-am-in | ||||||
|  | tags: free software, gsoc, thoughts | ||||||
| title: GSoC 2011, I am in. | title: GSoC 2011, I am in. | ||||||
| wordpress_id: 52138307 | wordpress_id: 52138307 | ||||||
| categories: |  | ||||||
| - Free software |  | ||||||
| - GSoC |  | ||||||
| - Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| I am too lazy to do anything these days, it took a long time to get over all that mind set. Sorry for not posting this guys, | I am too lazy to do anything these days, it took a long time to get over all that mind set. Sorry for not posting this guys, | ||||||
|   | |||||||
| @@ -4,12 +4,9 @@ comments: true | |||||||
| date: 2011-05-14 00:37:00 | date: 2011-05-14 00:37:00 | ||||||
| layout: post | layout: post | ||||||
| slug: welcome-to-acm-courtesy-of-google | slug: welcome-to-acm-courtesy-of-google | ||||||
|  | tags: free software, gsoc, thoughts | ||||||
| title: Welcome to ACM, Courtesy of Google | title: Welcome to ACM, Courtesy of Google | ||||||
| wordpress_id: 52982430 | wordpress_id: 52982430 | ||||||
| categories: |  | ||||||
| - Free software |  | ||||||
| - GSoC |  | ||||||
| - Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| So when I opened my mailbox today, this was watinig for me. It may not exactly fall into the type but still kind of first salary to me. | So when I opened my mailbox today, this was watinig for me. It may not exactly fall into the type but still kind of first salary to me. | ||||||
|   | |||||||
| @@ -4,6 +4,7 @@ comments: true | |||||||
| date: 2011-05-28 08:44:00 | date: 2011-05-28 08:44:00 | ||||||
| layout: post | layout: post | ||||||
| slug: hmm-vacation-work-time | slug: hmm-vacation-work-time | ||||||
|  | tags: untagged | ||||||
| title: Hmm, Vacation (Work) Time. | title: Hmm, Vacation (Work) Time. | ||||||
| wordpress_id: 54729006 | wordpress_id: 54729006 | ||||||
| --- | --- | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-06-04 22:48:00 | date: 2011-06-04 22:48:00 | ||||||
| layout: post | layout: post | ||||||
| slug: distributed-computing | slug: distributed-computing | ||||||
|  | tags: boinc, computing, gsoc | ||||||
| title: Distributed Computing. | title: Distributed Computing. | ||||||
| wordpress_id: 55668225 | wordpress_id: 55668225 | ||||||
| categories: Boinc Computing GSoC |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Since I got involved with distributed computing for my GSoC some my non technical friends were asking questions about the project, heres an article I suggest you all. I am sure this will solve almost all your questions. | Since I got involved with distributed computing for my GSoC some my non technical friends were asking questions about the project, heres an article I suggest you all. I am sure this will solve almost all your questions. | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-06-05 00:23:40 | date: 2011-06-05 00:23:40 | ||||||
| layout: post | layout: post | ||||||
| slug: random-reverbations | slug: random-reverbations | ||||||
|  | tags: friends | ||||||
| title: Random reverbations. | title: Random reverbations. | ||||||
| wordpress_id: 55677606 | wordpress_id: 55677606 | ||||||
| categories: Friends |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Never underestimate an old hard disk, this was the lesson I learned this morning, So the hard-earned memories, | Never underestimate an old hard disk, this was the lesson I learned this morning, So the hard-earned memories, | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-07-19 06:30:00 | date: 2011-07-19 06:30:00 | ||||||
| layout: post | layout: post | ||||||
| slug: birthday-food-for-thought | slug: birthday-food-for-thought | ||||||
|  | tags: thoughts | ||||||
| title: 'Birthday: Food for thought.' | title: 'Birthday: Food for thought.' | ||||||
| wordpress_id: 64888968 | wordpress_id: 64888968 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2011/07/62d42-me.jpg) | [](http://dbalan.files.wordpress.com/2011/07/62d42-me.jpg) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-08-23 12:54:29 | date: 2011-08-23 12:54:29 | ||||||
| layout: post | layout: post | ||||||
| slug: sigsegv | slug: sigsegv | ||||||
|  | tags: markers, thoughts | ||||||
| title: SIGSEGV | title: SIGSEGV | ||||||
| wordpress_id: 66702565 | wordpress_id: 66702565 | ||||||
| categories: Markers Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| **"Experience is the most brutal of all teachers." | **"Experience is the most brutal of all teachers." | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-08-30 06:12:22 | date: 2011-08-30 06:12:22 | ||||||
| layout: post | layout: post | ||||||
| slug: what-you-do-when-you-get-a-free-day | slug: what-you-do-when-you-get-a-free-day | ||||||
|  | tags: thoughts | ||||||
| title: What you do when you get a free day? | title: What you do when you get a free day? | ||||||
| wordpress_id: 67570727 | wordpress_id: 67570727 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| By free I never meant something like a holiday you get in ages which | By free I never meant something like a holiday you get in ages which | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-09-10 16:41:46 | date: 2011-09-10 16:41:46 | ||||||
| layout: post | layout: post | ||||||
| slug: good-to-be-back | slug: good-to-be-back | ||||||
|  | tags: trivandrum | ||||||
| title: Good to be back. | title: Good to be back. | ||||||
| wordpress_id: 69482578 | wordpress_id: 69482578 | ||||||
| categories: Trivandrum |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2011/09/78df1-20110910_0024_01.jpg) | [](http://dbalan.files.wordpress.com/2011/09/78df1-20110910_0024_01.jpg) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-09-11 14:49:25 | date: 2011-09-11 14:49:25 | ||||||
| layout: post | layout: post | ||||||
| slug: nothing-else-matters | slug: nothing-else-matters | ||||||
|  | tags: thoughts | ||||||
| title: Nothing Else Matters. | title: Nothing Else Matters. | ||||||
| wordpress_id: 69645449 | wordpress_id: 69645449 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
|      **"Our integrity sells for so little, but it is all we really have, It is the very last inch of us.** |      **"Our integrity sells for so little, but it is all we really have, It is the very last inch of us.** | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-09-16 13:08:11 | date: 2011-09-16 13:08:11 | ||||||
| layout: post | layout: post | ||||||
| slug: crazy | slug: crazy | ||||||
|  | tags: thoughts | ||||||
| title: Crazy | title: Crazy | ||||||
| wordpress_id: 70601600 | wordpress_id: 70601600 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2011/09/e3003-dsc_0120.jpg) | [](http://dbalan.files.wordpress.com/2011/09/e3003-dsc_0120.jpg) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-10-11 03:33:00 | date: 2011-10-11 03:33:00 | ||||||
| layout: post | layout: post | ||||||
| slug: ffmepg-nokia-7210-video-clips | slug: ffmepg-nokia-7210-video-clips | ||||||
|  | tags: gnu/linux, multimedia, tips | ||||||
| title: FFmpeg + Nokia 7210 Video Clips. | title: FFmpeg + Nokia 7210 Video Clips. | ||||||
| wordpress_id: 74980538 | wordpress_id: 74980538 | ||||||
| categories: GNU/Linux Multimedia Tips |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Nokia 7210 supports video clips of container mp4 with following specifications. | Nokia 7210 supports video clips of container mp4 with following specifications. | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-10-11 10:18:00 | date: 2011-10-11 10:18:00 | ||||||
| layout: post | layout: post | ||||||
| slug: latex-on-the-go | slug: latex-on-the-go | ||||||
|  | tags: latex, tips | ||||||
| title: LaTeX on the go. | title: LaTeX on the go. | ||||||
| wordpress_id: 75017934 | wordpress_id: 75017934 | ||||||
| categories: LaTeX Tips |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| This is just another day I thanked web 2.0, this time the story goes like this. | This is just another day I thanked web 2.0, this time the story goes like this. | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2011-10-28 16:02:00 | date: 2011-10-28 16:02:00 | ||||||
| layout: post | layout: post | ||||||
| slug: falling-slowly | slug: falling-slowly | ||||||
|  | tags: thoughts | ||||||
| title: Falling Slowly. | title: Falling Slowly. | ||||||
| wordpress_id: 77612351 | wordpress_id: 77612351 | ||||||
| categories: Thoughts |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Its a song from the movie [Once](http://www.imdb.com/title/tt0907657/), very beautiful one. The song was exactly | Its a song from the movie [Once](http://www.imdb.com/title/tt0907657/), very beautiful one. The song was exactly | ||||||
|   | |||||||
| @@ -4,11 +4,9 @@ comments: true | |||||||
| date: 2012-01-09 14:30:00 | date: 2012-01-09 14:30:00 | ||||||
| layout: post | layout: post | ||||||
| slug: arrow-keys-input-in-python | slug: arrow-keys-input-in-python | ||||||
|  | tags: programing, python | ||||||
| title: Arrow Keys input in python. | title: Arrow Keys input in python. | ||||||
| wordpress_id: 93005403 | wordpress_id: 93005403 | ||||||
| categories: |  | ||||||
| - Programing |  | ||||||
| - Python |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| I had an assignment to write an applicaion to control a toy helicopter. It should accept the inputs from the arrow keys and then generate a serial signal. The serial port is connected to the interfacing circutary. | I had an assignment to write an applicaion to control a toy helicopter. It should accept the inputs from the arrow keys and then generate a serial signal. The serial port is connected to the interfacing circutary. | ||||||
|   | |||||||
| @@ -4,12 +4,9 @@ comments: true | |||||||
| date: 2012-03-18 02:56:00 | date: 2012-03-18 02:56:00 | ||||||
| layout: post | layout: post | ||||||
| slug: progress-bar-in-mercurial-pushpull | slug: progress-bar-in-mercurial-pushpull | ||||||
|  | tags: free software, programing, revision control | ||||||
| title: Progress bar in mercurial push/pull | title: Progress bar in mercurial push/pull | ||||||
| wordpress_id: 112432788 | wordpress_id: 112432788 | ||||||
| categories: |  | ||||||
| - Free software |  | ||||||
| - Programing |  | ||||||
| - Revision Control |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| I admit I am a huge Git fanatic. Infact I havent used anything else for managing the code (except some checkout from svn). I was trying to build [orange](http://orange.biolab.si/), so I wasnt very happy when I realised they use [mercurial](http://mercurial.selenic.com/wiki/Mercurial) for the revision control (I, like all my fellow programmers is a lazy person to adapt ;-) ). | I admit I am a huge Git fanatic. Infact I havent used anything else for managing the code (except some checkout from svn). I was trying to build [orange](http://orange.biolab.si/), so I wasnt very happy when I realised they use [mercurial](http://mercurial.selenic.com/wiki/Mercurial) for the revision control (I, like all my fellow programmers is a lazy person to adapt ;-) ). | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2012-03-29 18:34:38 | date: 2012-03-29 18:34:38 | ||||||
| layout: post | layout: post | ||||||
| slug: thamarassery-mountain-pass-wayanad | slug: thamarassery-mountain-pass-wayanad | ||||||
|  | tags: trips | ||||||
| title: Thamarassery Mountain Pass, Wayanad. | title: Thamarassery Mountain Pass, Wayanad. | ||||||
| wordpress_id: 116868927 | wordpress_id: 116868927 | ||||||
| categories: Trips |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2012/03/7777a-thamarasery.jpg) | [](http://dbalan.files.wordpress.com/2012/03/7777a-thamarasery.jpg) | ||||||
|   | |||||||
| @@ -4,9 +4,9 @@ comments: true | |||||||
| date: 2012-11-21 21:45:00 | date: 2012-11-21 21:45:00 | ||||||
| layout: post | layout: post | ||||||
| slug: netbsd-chronicles | slug: netbsd-chronicles | ||||||
|  | tags: netbsd | ||||||
| title: NetBSD Chronicles. | title: NetBSD Chronicles. | ||||||
| wordpress_id: 169330104 | wordpress_id: 169330104 | ||||||
| categories: NetBSD |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| To be frank I wasn't doing much for almost an year, got lazy as one can ever be. Today was the day to break it. Got a little push do something and I got down to do it. I was looking at BSD development for a long time, and thought this is the best time to get involved. I am a total noob at BSD, I never really used one. So it was challenging when I started to install NetBSD into an old Comapq nx6120 that was lying around. I know anyone could get to the root shell easily, with help from brilliant click and go installers, configuring and customizing was the real problem. | To be frank I wasn't doing much for almost an year, got lazy as one can ever be. Today was the day to break it. Got a little push do something and I got down to do it. I was looking at BSD development for a long time, and thought this is the best time to get involved. I am a total noob at BSD, I never really used one. So it was challenging when I started to install NetBSD into an old Comapq nx6120 that was lying around. I know anyone could get to the root shell easily, with help from brilliant click and go installers, configuring and customizing was the real problem. | ||||||
|   | |||||||
| @@ -4,14 +4,9 @@ comments: true | |||||||
| date: 2012-11-24 05:44:19 | date: 2012-11-24 05:44:19 | ||||||
| layout: post | layout: post | ||||||
| slug: my-perfect-terminal | slug: my-perfect-terminal | ||||||
|  | tags: gnu/linux, zsh, terminator, archlinux, solarized | ||||||
| title: My perfect terminal | title: My perfect terminal | ||||||
| wordpress_id: 169555417 | wordpress_id: 169555417 | ||||||
| categories: |  | ||||||
| - GNU/Linux |  | ||||||
| - ZSH |  | ||||||
| - Terminator |  | ||||||
| - Archlinux |  | ||||||
| - Solarized |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
|   1. Install [ZSH](http://www.zsh.org/) |   1. Install [ZSH](http://www.zsh.org/) | ||||||
|   | |||||||
| @@ -4,13 +4,9 @@ comments: true | |||||||
| date: 2012-12-06 18:26:00 | date: 2012-12-06 18:26:00 | ||||||
| layout: post | layout: post | ||||||
| slug: rooting-a-nexus-7 | slug: rooting-a-nexus-7 | ||||||
|  | tags: android, programing, hack, rooting | ||||||
| title: Rooting a nexus 7 | title: Rooting a nexus 7 | ||||||
| wordpress_id: 171074083 | wordpress_id: 171074083 | ||||||
| categories: |  | ||||||
| - Android |  | ||||||
| - Programing |  | ||||||
| - Hack |  | ||||||
| - Rooting |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Lot of posts in the web about this is just bogus, all of them want you | Lot of posts in the web about this is just bogus, all of them want you | ||||||
|   | |||||||
| @@ -4,13 +4,9 @@ comments: true | |||||||
| date: 2012-12-12 10:51:00 | date: 2012-12-12 10:51:00 | ||||||
| layout: post | layout: post | ||||||
| slug: name-your-servers | slug: name-your-servers | ||||||
|  | tags: terminal, ssh, gnu/linux, hack | ||||||
| title: Name your servers. | title: Name your servers. | ||||||
| wordpress_id: 171537089 | wordpress_id: 171537089 | ||||||
| categories: |  | ||||||
| - Terminal |  | ||||||
| - SSH |  | ||||||
| - GNU/Linux |  | ||||||
| - Hack |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| If your day involves ssh-ing into various servers, you know how | If your day involves ssh-ing into various servers, you know how | ||||||
|   | |||||||
| @@ -4,10 +4,9 @@ comments: true | |||||||
| date: 2013-01-01 00:28:00 | date: 2013-01-01 00:28:00 | ||||||
| layout: post | layout: post | ||||||
| slug: a-thank-you-note | slug: a-thank-you-note | ||||||
|  | tags: life | ||||||
| title: A Thank You Note. | title: A Thank You Note. | ||||||
| wordpress_id: 173304734 | wordpress_id: 173304734 | ||||||
| categories: |  | ||||||
| - Life |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [](http://dbalan.files.wordpress.com/2013/01/869b2-4918647118_e1c7e4644f_d.jpg) | [](http://dbalan.files.wordpress.com/2013/01/869b2-4918647118_e1c7e4644f_d.jpg) | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "New Home" |  | ||||||
| date: 2013-05-03 21:01 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2013-05-03 21:01 | ||||||
| - Posterous | layout: post | ||||||
| - Update | tags: posterous, update, octopress | ||||||
| - Octopress | title: New Home | ||||||
| --- | --- | ||||||
|  |  | ||||||
| I loved posterous. I don't know how I missed it but till the final day I had no clue they were shutting down. It was an hour of panic. I had every itch not to go back to wordpress. It was bloated and just not my thing, and Jekyll was way to much work! | I loved posterous. I don't know how I missed it but till the final day I had no clue they were shutting down. It was an hour of panic. I had every itch not to go back to wordpress. It was bloated and just not my thing, and Jekyll was way to much work! | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Getting started with RTEMS on Archlinux" |  | ||||||
| date: 2013-05-28 21:24 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2013-05-28 21:24 | ||||||
| - RTEMS | layout: post | ||||||
| - GSoC | tags: rtems, gsoc, archlinux | ||||||
| - Archlinux | title: Getting started with RTEMS on Archlinux | ||||||
| --- | --- | ||||||
|  |  | ||||||
| The default RTEMS geting started does not cover the toolchain setup as it should be. It either redirects the user to download a ~1 GB distro or some pretty old RPMs. This shouldn't be like this. | The default RTEMS geting started does not cover the toolchain setup as it should be. It either redirects the user to download a ~1 GB distro or some pretty old RPMs. This shouldn't be like this. | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Summer of Code 2013" |  | ||||||
| date: 2013-05-28 12:35 |  | ||||||
| comments: true | comments: true | ||||||
| categories: GSoC Update RTEMS | date: 2013-05-28 12:35 | ||||||
|  | layout: post | ||||||
|  | tags: gsoc, update, rtems | ||||||
|  | title: Summer of Code 2013 | ||||||
| --- | --- | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Debugging RTEMS with GDB" |  | ||||||
| date: 2013-06-23 19:40 |  | ||||||
| comments: true | comments: true | ||||||
| categories:  | date: 2013-06-23 19:40 | ||||||
|  - RTEMS | layout: post | ||||||
|  - GSoC | tags: rtems, gsoc, gdb | ||||||
|  - GDB | title: Debugging RTEMS with GDB | ||||||
| --- | --- | ||||||
|  |  | ||||||
| RTEMS is difficult to debug, since the default GDB behaviour follows a language based approch and developer will have to debug the application+RTEMS stack as a whole. We are in process of developing a new set of extenstions for GDB to play nice with RTEMS. The intial code is available in this [github repository](https://github.com/dbalan/rtems-gdb). | RTEMS is difficult to debug, since the default GDB behaviour follows a language based approch and developer will have to debug the application+RTEMS stack as a whole. We are in process of developing a new set of extenstions for GDB to play nice with RTEMS. The intial code is available in this [github repository](https://github.com/dbalan/rtems-gdb). | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Automatic log-in for ACT Broadband" |  | ||||||
| date: 2014-08-16 19:14 |  | ||||||
| comments: true | comments: true | ||||||
| categories:  | date: 2014-08-16 19:14 | ||||||
|  - scripts | layout: post | ||||||
|  - bangalore | tags: scripts, bangalore, act broadband | ||||||
|  - ACT broadband | title: Automatic log-in for ACT Broadband | ||||||
| --- | --- | ||||||
|  |  | ||||||
| In my openion [ACT](http://portal.acttv.in) is the best ISP in [Bangalore](http://en.wikipedia.org/wiki/Bangalore), I found this network to be much better than any other provider in terms of reliability and the bandwidth, they seem very hacker friendly too, logging in as straightforward as a simple HTTP POST.  | In my openion [ACT](http://portal.acttv.in) is the best ISP in [Bangalore](http://en.wikipedia.org/wiki/Bangalore), I found this network to be much better than any other provider in terms of reliability and the bandwidth, they seem very hacker friendly too, logging in as straightforward as a simple HTTP POST.  | ||||||
|   | |||||||
| @@ -1,13 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Syslog on Mac OS X: Cheat Sheet" |  | ||||||
| date: 2015-02-21 00:41 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2015-02-21 00:41 | ||||||
|  - mac | layout: post | ||||||
|  - osx | tags: mac, osx, syslog, cheatsheet | ||||||
|  - syslog | title: 'Syslog on Mac OS X: Cheat Sheet' | ||||||
|  - cheatsheet |  | ||||||
| --- | --- | ||||||
| This is a quick cheatsheet to work with [`syslog(1)`](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/syslog.1.html) implementation OS X uses. | This is a quick cheatsheet to work with [`syslog(1)`](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/syslog.1.html) implementation OS X uses. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,14 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "State of Terminal: 2015 Edition" |  | ||||||
| date: 2015-03-28 00:28 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2015-03-28 00:28 | ||||||
| - computing | layout: post | ||||||
| - emacs | tags: computing, emacs, osx, terminal, zsh | ||||||
| - osx | title: 'State of Terminal: 2015 Edition' | ||||||
| - terminal |  | ||||||
| - zsh |  | ||||||
| --- | --- | ||||||
| I do this every year to keep track of the changes in my style. This is the first that goes public though | I do this every year to keep track of the changes in my style. This is the first that goes public though | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,11 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Notes on cgo" |  | ||||||
| date: 2015-03-29 00:28 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2015-03-29 00:28 | ||||||
| - golang | layout: post | ||||||
| - c | tags: golang, c | ||||||
|  | title: Notes on cgo | ||||||
| --- | --- | ||||||
|  |  | ||||||
| ## Referencing c from go. | ## Referencing c from go. | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Static site generators" |  | ||||||
| date: 2015-06-30 00:28 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2015-06-30 00:28 | ||||||
| - blogging | layout: post | ||||||
| - octopress | tags: blogging, octopress, meta | ||||||
| - meta | title: Static site generators | ||||||
| --- | --- | ||||||
| I use octopress with github hosting my pages. | I use octopress with github hosting my pages. | ||||||
| Everytime I sit down to write, I have to look up commands in my bash history and read documentation. Its very distracting when you just want to write. | Everytime I sit down to write, I have to look up commands in my bash history and read documentation. Its very distracting when you just want to write. | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Recursion" |  | ||||||
| date: 2015-08-22 00:28 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2015-08-22 00:28 | ||||||
| - haskell | layout: post | ||||||
| - recursion | tags: haskell, recursion, fibonacci numbers | ||||||
| - fibonacci numbers | title: Recursion | ||||||
| --- | --- | ||||||
|  |  | ||||||
| ```haskell | ```haskell | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "A Random rant" |  | ||||||
| date: 2015-12-01 00:00 |  | ||||||
| comments: false | comments: false | ||||||
| categories: | date: 2015-12-01 00:00 | ||||||
| - life | layout: post | ||||||
| - rant | tags: life, rant, filesystems | ||||||
| - filesystems | title: A Random rant | ||||||
| --- | --- | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|   | |||||||
| @@ -1,13 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Swanthathralokam '15" |  | ||||||
| date: 2015-12-28 12:52 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2015-12-28 12:52 | ||||||
|  - rationality | layout: post | ||||||
|  - malayalam | tags: rationality, malayalam, trivandrum, freethought | ||||||
|  - trivandrum | title: Swanthathralokam '15 | ||||||
|  - freethought |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| _[Swathathralokam '15](http://swathanthralokam2015.com/) was a conference on rationality and free thought that happened during 24th and 25th of december 2015_ | _[Swathathralokam '15](http://swathanthralokam2015.com/) was a conference on rationality and free thought that happened during 24th and 25th of december 2015_ | ||||||
|   | |||||||
| @@ -1,10 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "go: `:=` operator causes accidental shadowing" |  | ||||||
| date: 2016-01-14 21:13 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2016-01-14 21:13 | ||||||
|   - go | layout: post | ||||||
|  | tags: go | ||||||
|  | title: 'go: `:=` operator causes accidental shadowing' | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Go provides `:=` operator to make declaring variables easier. It is a [shorthand to declare and set a value of a variable](https://golang.org/ref/spec#Short_variable_declarations). for example, | Go provides `:=` operator to make declaring variables easier. It is a [shorthand to declare and set a value of a variable](https://golang.org/ref/spec#Short_variable_declarations). for example, | ||||||
|   | |||||||
| @@ -1,13 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Linux-4.12 " |  | ||||||
| date: 2017-08-02 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2017-08-02 | ||||||
|   - linux | layout: post | ||||||
|   - kernel | tags: linux, kernel, systems, code | ||||||
|   - systems | title: 'Linux-4.12 ' | ||||||
|   - code |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| Linux 4.12 was released few weeks ago. Its always nice to get a new version of kernel, but this time it was extra sweet, I managed to get some tiny commits merged to the release. | Linux 4.12 was released few weeks ago. Its always nice to get a new version of kernel, but this time it was extra sweet, I managed to get some tiny commits merged to the release. | ||||||
|   | |||||||
| @@ -1,11 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "KUHS" |  | ||||||
| date: 2018-03-08 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2018-03-08 | ||||||
|   - kuhs | layout: post | ||||||
|   - dns | tags: kuhs, dns | ||||||
|  | title: KUHS | ||||||
| --- | --- | ||||||
|  |  | ||||||
| [Kerala University of Health Sciences](https://en.wikipedia.org/wiki/Kerala_University_of_Health_Sciences), | [Kerala University of Health Sciences](https://en.wikipedia.org/wiki/Kerala_University_of_Health_Sciences), | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "FreeBSD wifi configuration" |  | ||||||
| date: 2018-08-04 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2018-08-04 | ||||||
|   - freebsd | layout: post | ||||||
|   - notes | tags: freebsd, notes, short | ||||||
|   - short | title: FreeBSD wifi configuration | ||||||
| --- | --- | ||||||
|  |  | ||||||
| To setup mulitple wlan profiles on FreeBSD and connect to them | To setup mulitple wlan profiles on FreeBSD and connect to them | ||||||
|   | |||||||
| @@ -1,12 +1,9 @@ | |||||||
| --- | --- | ||||||
| layout: post |  | ||||||
| title: "Misplaced inodes - Recurse Center Day # 2" |  | ||||||
| date: 2019-01-08 |  | ||||||
| comments: true | comments: true | ||||||
| categories: | date: 2019-01-08 | ||||||
|   - rc | layout: post | ||||||
|   - freebsd | tags: rc, freebsd, haskell | ||||||
|   - haskell | title: 'Misplaced inodes - Recurse Center Day # 2' | ||||||
| --- | --- | ||||||
|  |  | ||||||
| I am part of the Winter 2 batch of [RC](https://recurse.com) and today is day | I am part of the Winter 2 batch of [RC](https://recurse.com) and today is day | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ layout: post | |||||||
| title: "Experiments In Owning Data" | title: "Experiments In Owning Data" | ||||||
| date: 2019-01-20 | date: 2019-01-20 | ||||||
| comments: true | comments: true | ||||||
| tags: freebsd | tags: freebsd, data, hetzner | ||||||
| --- | --- | ||||||
|  |  | ||||||
| I have been working for a while to own most of the data I generate. Thought I | I have been working for a while to own most of the data I generate. Thought I | ||||||
|   | |||||||
| @@ -3,10 +3,7 @@ layout: post | |||||||
| title: "Experiments In Owning Data: Part 2" | title: "Experiments In Owning Data: Part 2" | ||||||
| date: 2019-01-23 | date: 2019-01-23 | ||||||
| comments: true | comments: true | ||||||
| categories: | tags: freebsd, nextcloud, data | ||||||
|   - freebsd |  | ||||||
|   - nextcloud |  | ||||||
|   - data |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
| _[Checkout part 1](/blog/2019/01/20/experiments-in-owning-data/index.html)_ | _[Checkout part 1](/blog/2019/01/20/experiments-in-owning-data/index.html)_ | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								templates/tag.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								templates/tag.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | |||||||
|  | <article> | ||||||
|  | <h1>$title$</h1> | ||||||
|  | $partial("templates/post-list.html")$ | ||||||
|  | </article> | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user
	 Dhananjay Balan
					Dhananjay Balan