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

Mautic

Mautic: Bounces Retrieval not working

Posted on

Error: [Symfony\Component\Debug\Exception\ClassNotFoundException] Attempted to load class "Type" from namespace "Mautic\EmailBundle\MonitoredEmail\Processor\Bounce". Did you forget a "use" statement for e.g. "JMS\Serializer\Annotation\Type", "Doctrine\DBAL\Types\Type", "Aws\DynamoDb\Enum\Type", "Symfony\Component\Validator\Constraints\Type" or "Mautic\Emai lBundle\MonitoredEmail\Processor\Bounce\Definition\Type"?   Best way to solve this is by adding the verbose option to the fetch command.  php app/console mautic:emails:fetch -v

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

Mautic

Mautic: Placeholders

Posted on

Related to contacts {contactfield=firstname}   Related to Companies {contactfield=companyname} {contactfield=city} {contactfield=companyfax}   Custom Fields???

PowerBI

PowerBI: SugarCRM Database Connection.

Posted on

It will only work if you add the following parameter: OldGuids=true And the query will work as follows. let Source = MySQL.Database("192.168.1.244", "crm_em", [ReturnSingleDatabase=true, OldGuids=true]), crm_em_opportunities = Source{[Schema="crm_em",Item="opportunities"]}[Data] in crm_em_opportunities

Life

Tim Ferriss: Rick Rubin Interview

Posted on

Rick is a well established music businessman, on this interview he shares his views on life and several interesting subjects. Recommended. Notes Lost 140 Pounds First steps into health with Phil Maffetone Recommended Stu Middleman (1000 Miles in 11 Days)  https://www.amazon.com/Slow-Burn-Faster-Exercising-Slower/dp/0062736744 Nutritionist Doctor David Heber UCLA  The only doctor that was able to make him […]

Prestashop

Prestashop: Remove Rendering Blocking CSS

Posted on

If you do a Page Speed test on Google, to make sure your site is loading fast enough and a slow load time is not penalizing your SEO, you can do this hetre: https://developers.google.com/speed/pagespeed/insights/ One tipical error you'll get is  Eliminate render-blocking JavaScript and CSS in above-the-fold content The solution I got was to remove […]