Synology

NAS: Reload Cron

Posted on

On the Synology OS (...some type of linux...) after editing the crontab you need to reload it otherwise no changes are made. /usr/syno/sbin/synoservicectl --reload crond

Jasper Reports

JasperServer: Start Server on Boot

Posted on

This is an excellent post, which not only shows you how to solve the startup problem, but illustrate the use of startup scripts. http://community.jaspersoft.com/questions/541044/auto-start-boot   Key Points. To creste "service type" scripts you need to create the bash script on /etc/init.d/NAME_OF_SCRIPT To have this script run on server boot, you need to run update-rc.d NAME_OF_SCRIPT defaults […]

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

MySQL

PHPMyAdmin: Securing web console

Posted on

I installed PHPMyadmin to check my help manage my database, eventhough I also use the desktop program MySQL Workbench, I fell sometimes its important to use the webconsole. Recently, upon checking my MySQL Logs (/var/logs/mysql/error.log) I encountered that everyday I had thousands of failed logins to the PHPMyAdmin. I sure enough have a very strong […]

Prestashop

Prestashop: No follow causing W3 non-compliance

Posted on

The problem I believe has to do with changes on standards. The w3 validator shoes as an error to have multiple rel="example" tags inside an argument. So when it added its no follow arguments did the following things. Incorrect <a rel="nofollow" href="http://www.malla-supply.com/manufacturers-abb-96?p=2" rel="next">   Correct <a href="http://www.malla-supply.com/manufacturers-abb-96?p=2" rel="next nofollow">   To solve this I removed the […]

Uncategorized

Prestashop: Add Google Custom Search

Posted on

  header.tpl line 135 Search box Code <div class="google-search" > <div id="global_shipping"><span>In Service Since 2009</span></div> <script> (function() { var cx = 'XXXXXXXXXXXXXXXXXXXXXXXX'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:searchbox></gcse:searchbox> </div>   Google Results. <gcse:searchresults></gcse:searchresults>  

Prestashop

Prestsahop: Edit Variables

Posted on

I wanted to change the Manufacturer Name variable, to eliminate the spaces and replace it with a dash. I tried doing this with PHP, but it was terrible to do it, as there were multiple places to change it, and it some places impossible. To do it via PHP Variable I had to change it […]