Tuesday, August 9, 2016

ERROR: execute[install-pip] (python::pip line 56) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'

Editing the file:
Mining-the-Social-Web-2nd-Edition/deploy/cookbooks/python/attributes/default.rb
on your machine and changing the line:
default['python']['pip_script_url'] = 'https://raw.github.com/pypa/pip/master/contrib/get-pip.py'
to:
default['python']['pip_script_url'] = 'https://bootstrap.pypa.io/get-pip.py'
should fix the problem.

More,
Google Code is now in archive mode, so the direct link to layercake-python.tar.bz2 no longer works. To work around the issue:
  "/vagrant/layercake-python.tar.bz2"

vagrantfile giving error of not having capability to install chef latest

Please add "chef.install = false" in the vagrantfile otherwise it is giving error of not having capability to install

Saturday, May 14, 2016

Wednesday, March 16, 2016

using track changes in latex using changes package

Example from the link

http://tex.stackexchange.com/questions/65453/track-changes-in-latex


documentclass{article}

\usepackage{changes}
\usepackage{lipsum}% <- For dummy text
\definechangesauthor[name={Per cusse}, color=orange]{per}
\setremarkmarkup{(#2)}


\begin{document}
\lipsum[1-7]

This is \added[id=per,remark={we need this}]{new} text.
This is \added[id=per,remark={has to be in it}]{new} text.
This is \deleted[id=per,remark=obsolete]{unnecessary}text.
This is \replaced[id=per]{nice}{bad} text.

This is \added[remark={we need this}]{new} text.
This is \added[remark={has to be in it}]{new} text.
This is \deleted[remark=obsolete]{unnecessary}text.
This is \replaced{nice}{bad} text.


\listofchanges
\end{document}
And the nice thing is that if you supply the final option to the package declaration that is \usepackage[final]{changes} it clears the traces of changes made by the authors and respecting the last changes. 

Fatal fontspec error: "cannot-use-pdftex" MikTex

Solution
Check the dropdown in Taxicenter showing latex->pdf and change it to lualatex ->pdf

Friday, February 26, 2016

that vs which

That for restrictive clause
and which is for non restrictive clause

The book that addresses this topic is a usage dictionary
The book, which is blue, is a usage dictionary

"which is blue" is not restrictive to the topic

Reference:
http://www.merriam-webster.com/video/that-vs-which