Thursday, December 1, 2016

Thursday, November 24, 2016

Gulp: Failed to load external module coffee-script/register

For anyone coming across an issue with the
Failed to load external module coffee-script/register
issue, check if you indeed have coffee-script installed:
$ npm ls coffee-script
your-app@1.0.0
└── coffee-script@1.9.0
If you have it installed, delete the node_modules folder, and rerun your install:
$ rm -rf node_modules && npm install

OpenCV: can't predict the confidence

Predict function is not sending the result of confidence/distance

Remove the CV_WRAP from predict function on file
/opencv_contrib/modules/face/include/opencv2/face.hpp

and Recompile the opencv

-----------------------------
A better way that was already present in the opencv3, suggested by Abdul Jalil

result = cv2.face.MinDistancePredictCollector()
        recognizer.predict(face,result, 0)
        recog = result.getLabel()
        conf = result.getDist()


gulp: Error 'node' no such file or directory

I've found this is often a misnaming error, if you install from a package manager you bin may be called nodejs so you just need to symlink it like so "ln -s /usr/bin/nodejs /usr/bin/node"

Saturday, November 19, 2016

opencv facerecognizer tutorial llink

http://hanzratech.in/2015/02/03/face-recognition-using-opencv.html

http://answers.opencv.org/question/82294/cant-get-predict-confidence/

https://courses.cit.cornell.edu/ece5990/ECE5990_Fall15_FinalProjects/Andre_Heil/ece5990_final_report/avh34_jr986.html

Opencv3 Cv2.cv.HAAR_SCALE_IMAGE cv not found

Solution
cv2.CASCADE_SCALE_IMAGE

Opencv3: no attribute name 'CV_AA'

In opencv3
change CV_AA to LINE_AA

for testing
import cv2
cv2.LINE_AA in python

Tuesday, November 15, 2016

dlib on ubuntu

pip install dlib
You will need boost python. To get it:
sudo apt-get install libboost-all-dev

Saturday, November 12, 2016

opencv installation errors: math.h or stdlib.h not found

Solution
Without  gstreamer and with gcc  version 6, installation generates too many errors.  

$sudo apt-get install gstreamer1.0*
$sudo apt-get install gstreamer-plugins-base1.0.dev


install gcc and g++ version 5
and downgrade gcc  and g++ version
$sudo update-alternatives  --install /usr/bin/gcc gcc /usr/bin/gcc-5 100
$sudo update-alternatives  --install /usr/bin/g++ g++ /usr/bin/g++-5 100

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

Friday, January 29, 2016

getting java.lang.IllegalStateException: Profile not locked due to exception in eclipse while trying to open Install new software

Start by checking you error log under Window -> Show View -> Error Log
It's clear to demonstrate the issue by the exception.
You need check whether your account that is running Eclipse has permission to create lock file(C:\WORK\GALILEO\eclipse_STT - Offline\p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.rcp.profile.lock). Or manually remove it if it already exists.