C# yaml config

yaml is pretty good way to define config for an application rather than xml file. There are many libraries available for parsing yaml in C#. Two of the libraries i tried are: yamlconfig and sharpyaml. I liked the general concept behind yamlconfig but it wasn’t that good to just integrate and get started, so I chose sharpyaml over it. The thing I liked about sharpyaml is how easy it is to get it going, I did not had much success with yamlconfig. [Read More]


These days vim is preferred editor, and have started using it at work and home alike. That means my vimrc kept evolving and had to sync at both the sites. Thought would back it up some where I can handily find it when required.

This post has all the contents of my vimrc as backup

[Read More]

deleting all matching files recursively

I am a big fan of linux command line utils and work with many of those on windows as well. One of the commands I have started to like is xargs. I Like the way you could compose commands with pipes. Have tried using xargs on windows without much success.

One of the things I often use this is to clean temp directories of certain log files. My linux commands would have been:

find . -name "*.syslog" | xargs rm

Now I could have done this on windows as:

dir /s /b *.syslog | xargs rm

but xargs dies with environment being too large, instead had to switch to a less elegant solution:

forfiles /s /p . /M *.syslog /c "cmd /c rm @path"

[Read More]

controlling processor frequency

My aging MacBook Pro just got a new life (Apple replaced main-board due to graphics card issue), it worked out pretty good. Thought it is perhaps time to upgrade to Windows 10. Now that i have upgraded fans won’t stop whizzing, they were running at full speed even when the CPU is idling.

Seems like some sort of bug, didn’t wanted to mess around much hardware setups and did not wanted to install fan speed controlling utility as well. Found a cool setting that gave me what i wanted, thing is to clamp down frequency.

[Read More]