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) […]

Uncategorized

Asterisk: Fail2ban & IP Tables

Posted on

https://www.voip-info.org/fail2ban-with-iptables-and-asterisk/ /etc/init.d/fail2ban restart /etc/init.d/fail2ban reload /etc/init.d/iptables-persistent restart When you reload or restart fail2ban all the bans are removed.    One problem with this wonderful solution (which is related to iptables, not fail2ban), is that when you reboot your server all the rules and blocked IPs are deleted. On my case I want all this IPs […]

Uncategorized

Prestashop: Remove Manufacturer List Scroll

Posted on

theme folder -> manufacturer-list.tpl To remove top scrool, around line 70, delete the following: <div class="top-pagination-content clearfix bottom-line"> {include file="$tpl_dir./pagination.tpl" no_follow=1} </div>   For the bottom one,    Delete around line 153   <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="$tpl_dir./pagination.tpl" no_follow=1 paginationId='bottom'} </div> </div>     To disable Sortibar Delete around line 51:   <div […]

Uncategorized

Talend Studio: Allocate Memory

Posted on

https://community.talend.com/t5/Migration-Configuration-and/Allocating-more-memory-to-Talend-Studio/ta-p/21642   Locate the .ini file inside the Talend installation folder.  With 8 GB of memory available on 64-bit system, the optimal settings can be: -vmargs -Xms1024m -Xmx4096m -XX:MaxPermSize=512m -Dfile.encoding=UTF-8 After this, you need to configure this same variables on the Advanced Settings of the Run Tab.

Uncategorized

Excel: Create Random 40 character string

Posted on

=CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))

Uncategorized

Java Version

Posted on

I have java 6 installed, and decided to install java 7. But even after I installed java 7 the system recognized java 6.  To select java 7 as default: sudo update-alternatives --config java

Prestashop

Prestashop: Remove undefined from Product List

Posted on

When you switch the view from Manufacturer's Product List you get an undefined Character.  To remove this go to  /var/www/html/XXXXXXX/themes/default-bootstrap/js/global.js: Comment the following lines: Line 284: html += '<h5 itemprop="name">'+ $(element).find('h5').html() + '</h5>';   Line 324: html += '<h5 itemprop="name">'+ $(element).find('h5').html() + '</h5>';

Uncategorized

IPTables

Posted on

To have the tables load after reboot sudo apt-get install iptables-persistent Then after you edit the iptables, if you want to update the initial file you should sudo /etc/init.d/iptables-persistent save   To enable the log, you need to: iptables -N LOGGING iptables -A INPUT -j LOGGING iptables -A LOGGING -m limit --limit 10/min -j LOG […]

Uncategorized

Excel: VBA Script to Clean Text

Posted on

Function StripAccent(thestring As String) Dim A As String * 1 Dim B As String * 1 Dim i As Integer Const AccChars= "ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ" Const RegChars= "SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy" For i = 1 To Len(AccChars) A = Mid(AccChars, i, 1) B = Mid(RegChars, i, 1) thestring = Replace(thestring, A, B) Next StripAccent = thestring End Function

Uncategorized

WordPress: Text being changed

Posted on

Quotations and dashed are different from the original text to the display. This is problematic is you're using code, because it will change it.  This is called wptexturize.  To solve this add the following code on the functions.php file inside the template folder. add_filter( 'run_wptexturize', '__return_false' );   https://wordpress.stackexchange.com/questions/241454/how-can-i-reliably-and-globally-disable-wptexturize/241468 Quoting this great answer:  Plugins will be […]