PHP

PHP-FPM Performance Tweaks

Posted on

High performance Apache with mpm-event and PHP-FPM   Next, we edit config file for mpm-event at /etc/apache2/mod-available/mpm-event.conf : # event MPM # StartServers: initial number of server processes to start # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads […]

Python

Python: For Financial Services

Posted on

  Download Python (https://www.python.org/downloads/release/python-361/) Download matplotlib (https://pypi.python.org/pypi/matplotlib) Numpy (http://www.numpy.org/) Python Installers: http://www.lfd.uci.edu/~gohlke/pythonlibs/       cd \Users\Ricardo\AppData\Local\Programs\Python\Python36\Scripts   pip install numpy pip install Matplotlib pip install pandas pip install pandas-datareader pip install beautifulsoup4 pip install scikit-learn     Posible IDEs iPython Notebooks Anaconda PyCharm Pro   Good Tutorials on Panda pandas python.org   Recommended Youtube Channels: https://www.youtube.com/user/APMonitorCom/videos https://www.youtube.com/user/sentdex/videos

PHP

Prestashop: Debug Mode and Memory Upgrade

Posted on

To turn on debug mode go to: config/defines.inc.php Set define(‘_PS_MODE_DEV_’, false); –> define(‘_PS_MODE_DEV_’, true);   To upgrade PHP Memory Limit vim /etc/php5/apache2/php.ini — Go to Memory Limit.   To check PHP Config create a file with the following code. <?php phpinfo(); ?>   Another way to raise you your servers performance is to create a SWAP file, […]

Shell Scripts

Shell Scripts

Posted on

If you want to execute a Shell Script, that connects to another server and executes another script, this is the nomenclature. Make sure to include the && between each command. ssh root@$SERVERIP ‘cd /PATH/TO/SHELL SCRIPT && ./SCRIPT.sh

Jasper Reports

JAVA: Compare Boolean Vale

Posted on

I require this to limit the Print when Expression Field on Jasper Studio. I had some trouble getting the comparison formule, because I used the typical: $F{rfq_c} == “VALUE” This formula did not work because it only applies when comparing strings. After a lot of trial and error the correct formula would be: new Boolean($F{rfq_c}.booleanValue() […]