Author: Matthias Kerstner

PHP Logo 0

Install PHP intl extension using Homebrew on XAMPP

Recently, when trying to install the PHP intl extension for a Symfony2 based web project using Homebrew to following error message kept showing up: /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0 This post steps explains what is needed to install PHP...

W3C WCAG 2.0 1

WCAG 2.0 – Web Content Accessibility Guidelines

When designing web sites and portals make sure to also address general accessibility issues governed for instance by the WCAG 2.0 – Web Content Accessibility Guidelines. WCAG 2.0 – Web Content Accessibility Guidelines Basically, the WCAG is composed of three priority levels: Level A (beginner), Level AA (intermediate) Level AAA (advanced) Each...

jQuery Logo 0

jQuery Lights out Plugin

In current times, saving energy in all its variants is becoming more and more important each day. When it comes to websites one simple way to save energy is to dim the display when idle. Both Interact has released a simple yet versatile cross-browser jQuery lights out plugin. In order...

Disable SSLv3 support for Apache 0

Disable SSLv3 support for Apache

In case you haven’t disabled support for SSLv3 for Apache yet – do so now! You can easily disable SSLv3 using your Apache configuration httpd.conf using the option -SSLv3: As always, make sure to restart Apache afterwards. Note that depending on your setup you might need to set the list...

Source Code Icon 0

Resolving IPv6 issues with GMail using qmail smtp

In case you are running into problems with Google Mail (GMail) rejecting mail from your qmail server running on native IPv6 with the following message 2a00:1450:4013:0c01:0000:0000:0000:001a failed after I sent the message. Remote host said: 550-5.7.1 [xxx:xxx:xxx:xxx::x 12] Our system has detected that this 550-5.7.1 message is likely unsolicited mail....

Google Logo 0

Google mobile search update

Today, Google has released its newest search algorithm update for mobile search results. It is specifically targeted at displaying mobile-friendly website results in favor on non-mobile versions. In the first phase of this update the focus lies in searches conducted on smartphones only, tablets and other mobile devices are not...

Magento Logo 4

Mass import products to Magento multi-store setup

So, you are about to import a large amount of products into Magento. Well, there are a couple of different approaches available. First, you could use the ancient Data Flow import based on specific profiles. Then, you could use the improved Data Import version, which still is (very) resource consuming....

TYPO3 Logo 0

String comparison in Typoscript through user functions in TYPO3

Generally, string comparison using the on-board tools provided by TypoScript can be quite cumbersome in TYPO3. Although, for instance for globalStrings there exists the possibility to use regular expressions and the * character as wildcard, oftentimes this is not flexible enough to handle more complex conditions, such as combined conditions....

Wordpress Logo 0

WordPress Rating-Widget shows blank reporting graph when using SSL

By default, the free version of the WordPress Rating-Widget does not officially “support” SSL/https setups. In reality, there are no problems using it on SSL setups except when it comes to the reporting graph which is loaded via a http connection set in the configuration, thus causing CORS to kick...

Google Logo 0

Retrieving value of hidden input DOM element in Google Tag Manager (GTM)

When implementing event tracking of user comments using Google Tag Manager for WordPress I came across a pretty strange behavior when trying to retrieve the value of a hidden <input> field holding the current comment post id (comment_post_ID) that should serve as event label for Google (Universal) Analytics. WordPress Comment Form...

Cyanogenmod Updater crashes when using Nightly builts 0

Cyanogenmod Updater crashes when using Nightly builts

In case you are trying to update Cyanogenmod the a current Nightly built (e.g. Nightly Cm-11-20150201) chances are that the CM updater crashes before even rebooting to the actual updating process. This problem has been confirmed by PsychoI3oy on the CM forum: Yeah, we’ve been getting a lot of crashes...

Magento Logo 0

Automatically clean product texts in Magento

So someone copied text from a PDF document and pasted it into the Magento product description (or short description) text field. Unfortunately, the copied text included non-printable control characters in the Unicode range from \x00—\x1F and \x80-\x9f (e.g. DEL, NUL, VT, etc.) thus breaking other extensions from functioning properly, or...

PHP Logo 1

Overloading constructors and functions in PHP

Since I was recently asked whether it’s possible to overload constructors in PHP, or functions in general, here is the quick answer: No, not in the common sense of “overloading”, i.e. creating multiple versions of the same function name with different implementations and arguments. Thus, the following is not possible...