uncategorized

Gitconfig tip for github

01 Nov 2016 - 1 minute read
categories: uncategorized tags: git

Today’s git tip In .gitconfig: [url “[email protected]:”] insteadOf = gh: Now you can do, eg: $ git clone gh:kisielk/errcheck https://twitter.com/kisielk/status/793133952542191616

Just installed a new theme for the blog…

31 Oct 2016 - 1 minute read
categories: uncategorized tags: ajax wordpress

Just installed a new theme for the blog called P2. I’m using a child theme called Mercury. Also installed and played with a bunch of plugins. Want to try micro blogging and also live blogging during my coding sessions. Also, learnt that AJAX requests don’t seem to work behind proxies. P2 sends an initial Ajax request when you click on post from the front-end and it was failing, scourged the internet but couldn’t find a solution.

Hello WordPress

20 Oct 2016 - 1 minute read
categories: uncategorized

I’m back to using WordPress from Jekyll. I followed David Lynch’s blog post to import my posts from the jekyll blog hosted on github.io Although, I did not use the plugins made by him, they might be useful if you had a lot of Disqus comments in your blog.

Topological Sort for problems using DAG

06 Aug 2016 - 3 minute read
categories: uncategorized

Given a DAG (Directed Acyclic Graph), in which we know the adjacencies represent the order in which to perform a task, and the vertices are tasks, we want to place the vertices in a sequence. We must find a sequence that must satisfy all dependencies of pre-requisites. This sequential arrangement of the vertices is called the topological sort of the DAG. The first examples that come in my mind are of pre-requisite chains in courses offered at universities.

To Draft or not to Draft

04 Aug 2016 - 1 minute read
categories: uncategorized

I just realized that I have way more drafts pending in my blog than the actual posts that are published here. Maybe, it is because I am afraid of being incorrect. Well, today I have decided that I will not worry about being correct and will post rather than draft. The motivation to publish a pending draft drops exponentially for me with time. So, if any of my readers find any mistake in my posts; please notify me so that I can correct it for my and my reader’s sake.

Vim as your daily log notebook

20 Jun 2016 - 1 minute read
categories: uncategorized

There are probably hundreds of methods and software that have been written that can help you maintain a notebook that contains your daily logs and notes. I have tried tens of methods and software and after a few days they just feel like bloat or take up too much time to maintain regularly. So, I decided to break down my own problem and found a simplisitic method/solution that suits me. My need was to write two logs, one life log and one dev log which was distraction free and would not take more than a second to get started with.

Point about Floating (Points)

28 Jan 2016 - 1 minute read
categories: uncategorized

It is not always true what you might be told about floating point numbers, always better to look for things in the manual or on the internet Black Hat was lying to the ACM team. e^π – π, which is around 19.999099979 is very close to 20. Many people forget that floating point numbers are approximations, otherwise infinite space would be needed to store such numbers. He made them believe that it is “close enough to 20 that the computer should be unable to tell the difference, and that any noticeable deviation from 20 results from errors in the code”.

The World Community Grid: Make your computer’s idle time to useful

28 Sep 2010 - 2 minute read
categories: uncategorized

Their Mission, Their Work and You World Community Grid’s mission is to create the world’s largest public computing grid to tackle projects that benefit humanity. The [World Community Grid]( World Community Grid) wants to turn you spare computer power into life saving change around the globe. Sponsored by IBM, the WCG is a nonprofit that partners with research teams to help them analyze data and run simulations. Each person who joins WCG donates their idle computer time to solve a fraction of a larger problem.