Uncategorized

SugarCRM: Run Java Script from Custom logic hook

Posted on

    <?php if(!defined(‘sugarEntry’) || !sugarEntry) die(‘Not A Valid Entry Point’); class idempiere_sync { function idempiere_sync(&$bean, $event, $arguments) { require_once(‘log4php/LoggerManager.php’); $JAVA_HOME = “/usr/lib/jvm/java-8-openjdk-amd64”; $PATH = “$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin”; putenv(“JAVA_HOME=$JAVA_HOME”); putenv(“PATH=$PATH”); $output = shell_exec(‘/home/Scripts/talend/iDempiere/SugarCRM/CRM_iDempiere/CRM_iDempiere_run.sh’); echo $output; } } ?>

Uncategorized

Pfsense: Automatic Reboot

Posted on

We have a remote pfsense router on a remote location with no employees. On this location we have several critical servers. We used to have a pretty stable internet conection, with our ISP being Comcast (up to 100 mbps download speeds).  Since a couple of months ago, we have been experiencing some problems, first, our […]

Uncategorized

Ubuntu: Resolve out of Memory

Posted on

  Out of memory: Kill process 10356 (mysqld)   This happens because the system is out of memory, you should investigate the reason. It is not necessarily a MySQL problem, there may be a memory leak somewhere else that leaves little memory (ram) to continue working. There are several workarounds to this. The easy way […]

Uncategorized

Ubiquiti: Install UNIFI Video on Ubuntu 16.04

Posted on

https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu   There’s a problem with the server start, so I start it manually.  sudo service unifi start   Get the error:   root@mohe:~# service unifi-video status ● unifi-video.service – LSB: Ubiquiti unifi-video Loaded: loaded (/etc/init.d/unifi-video; bad; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd-sysv-generator(8)     root@mohe:~# service unifi-video status ● unifi-video.service – LSB: […]

Uncategorized

Pendrive Movistar Venezuela: Networking

Posted on

Tengo un pendrive Movistar en Venezuela, está conectado a un router redundante con sistema operativo Pfsense.  El pendrive funciona bien para navegar (velocidades de 20 mbps), pero tengo problemas para utilizarlo con el sistema de voz sobre ip, inclusive tengo problemas con accediendo al router a través del IP que registra el PEN Drive.    […]

Uncategorized

JAVA: Revert from JAVA 1.8 to 1.7 Windows 10

Posted on

Uninstall Java from Control Panel -> Programs -> Uninstall Need to remove three files from /Windows/System32 and C:\ProgramData\Oracle\Java\javapath (you need to view hidden files to see Program Data) This files are  “java”, “javaw” and “javaws” After you do this you should reboot and then install the java version you want (in this example java 1.7) […]