Determine your optimal mtu

August 3rd, 2014

Network Speeds – MTU

Categories: Uncategorized | No Comments

Magento Download

June 17th, 2014

This one kind of slipped by me, but here’s the latest version of Magento once again:

MD5: f4b2a06887eb486da3210e16b6a3425e

Categories: Magento | No Comments


June 15th, 2014

Can’t help but post this track, from my long lost brother I AM ROBOT :P

Categories: Uncategorized | No Comments

Magento create slug

June 12th, 2014

MU-SlugCreating a Magento slug from any type of string or bunch of words is really easy. Magento has a few built in functions to deal with just that and they take any type of character as input.

As described by Wikipedia:

Some systems define a slug as the part of a URL which identifies a page using human-readable keywords.[4][5] It is usually the end part of the URL, which can be interpreted as the name of the resource, similar to the basename in a filename or the title of a page. The name is based on the use of the word slug in the news media to indicate a short name given to an article for internal use.

Slugs are typically generated automatically from a page title but can also be entered or altered manually, so that while the page title remains designed for display and human readability, its slug may be optimized for brevity or for consumption by search engines. Long page titles may also be truncated to keep the final URL to a reasonable length.

Slugs are generally entirely lowercase, with accented characters replaced by letters from the English alphabet and whitespace characters replaced by a dash or an underscore, in order to avoid being encoded. Punctuation marks are generally removed. For example:

Original title: This, That & the Other! Various Outré Considerations
Generated slug: this-that-other-various-outre-considerations

At work we even use it to generate CSS classes since they are also safe in that aspect. I have copied it into a simple function, since I used it for an import script but if you are just working in Magento itself you can of course just call the Mage:: line by itself.

Categories: Magento | No Comments

Class undefined: Mage_Googlecheckout_Helper_Data

June 2nd, 2014

t-google-404-1299071983This is a common problem you will experience after updating Magento past There are a few Google Checkout files which are not necessary anymore and if they still exist Magento will spit out an error (and possibly a white screen) after the update. I usually find the error in system.log and it usually looks like this:

This has been documented in the knowledgebase here:

The sollution is quite simple, go to the following directory and delete all the files EXCEPT config.xml:

So that should be the following files:

After deleting those files your admin pages should work again. You might have to clear your cache as well.

Categories: Magento | Tags: , , , , | No Comments

Working Drupal 7 Nginx Configuration

May 16th, 2014

This config is working for me including regeneration of style images after being flushed.

Categories: Drupal, Linux, Nginx | Tags: , , , | No Comments

Download Magento

May 14th, 2014

Here’s the new version of Magento:

Categories: Magento | Tags: , , | No Comments

Nginx timeout + PHP-FPM/HHVM

May 9th, 2014

In case you are searching for why you can still get a 504 gateway timeout when you have already increased max_execution_time in php.ini: try adding this to your fastcgi_params file:

UPDATE: Turns out this was also happening when we were running an Nginx + HHVM server. Of course I went searching for a max_execution_time value but as far as I could tell HHVM doesn’t have that and it turned out to be this nginx timeout once again.

Categories: Linux, Nginx, PHP | Tags: , , , , , | No Comments

CentOS 6.5 Minimal Install

May 8th, 2014

Just to document my installation of CentOS 6.5.. Maybe it’s to use for someone else :)
It’s not complete since I kind of started to fall asleep at the end. Installing CentOS yourself is quite a hassle compared to Rackspace/DigitalOcean.


Categories: CentOS, Databases, Linux, Magento, Mysql, Nginx, PHP | No Comments

Auto tag, rebranch and switch svn repo

May 2nd, 2014


Be gentle, this is my first real script in Python. It can probably take a bit of cleaning up and it still outputs a bunch of feedback for debugging.

This script takes a repo_url, a checkout location and a list of branches to work with.
It checks if there have been changes to a branch in the last 14 days, if not it creates a tag in trunk and deletes the branch then recreates it. It even goes so far as to switch the location of the checkout location to the newly created branch.

Categories: Pythnon, SVN | Tags: , , , , | No Comments