How to grep recursively for xml files

To grep recursively we need the -r flag. To get only the file name we use the -l flag To get only files with extention .xml  we use the ‘–include’ flag and don’t forget to escape the spcial character with the ‘\’ grep -rl –include \*.xml “MARTIN” .

Read More »

How to change the fonts in gvim on windows

add a file named _vimrc to your home directory. 123set nobackup set noswapfile set guifont=Consolas:h7:cANSI:qDRAFT In the gvim menu change the font to the format you would like to have. Then query back what is the string that was used to set the font. 1:set guifont?

Read More »

How to split a windows with gvim

To split a window horizontally you need to press ctrl+w in command mode then wait for a “w” to show on the bottom right of the screen then press “s” 1CTRL+w s To split a window vertically you need to press ctrl+w + v 1CTRL+w v CTRL+Z

Read More »

How to normalize and denormalize data between 0 and 1

Some AI algo works better with values between 0 and 1 but it is rare to have data already between 0 and 1. The following formula will show you how to convert an array of data to a normalized Normalize = ($inputvalue – $min) / ($max – $min) 0.111 = (2-1)/(10-1) Denormalized = ($normalizedValue * ($max-$min) […]

Read More »

How to install metatrader 5 on linux ubuntu xenial

There is 2 basics steps to install Metatrader 5 on linux. You need to install right version of wine and ubuntu xenial does not have the right version in its repository. The one that comes with Ubuntu is missing the mono packages that is needed to run .NET application and it is also missing the […]

Read More »