lambda functions in matlab

I discovered it during Machine learnin courses on Coursera

To specify the actual function we are minimizing, we use a \short-hand"
for specifying functions with the @(t) ( costFunction(t, X, y) ) . This
creates a function, with argument t, which calls your costFunction. This
allows us to wrap the costFunction for use with fminunc.

@(t) ( costFunction(t, X, y) )   - that's awesome

crop included graphics in latex

\documentclass{article}

\usepackage{graphicx}

\begin{document}
% crop left
\includegraphics[trim={5cm 0 0 0},clip]{path-to-image}
% crop right
\includegraphics[trim={0 0 5cm 0},clip]{path-to-image}
\end{document}
Use the trim option, which takes four space separated values.
 trim={<left> <lower> <right> <upper>}
Source: http://tex.stackexchange.com/a/57420

multiple "windows" in one linux terminal

use "screen" utility

ctrl-a-p - switch
ctrl-a-c - new
ctrl-a-Q - remove freeze
ctrl-a-s - freeze
ctrl-a-S - split, but doesn;t work