·

How to

Tips & tricks, tricks & tips. Looking for a way to achieve something? Here’s how to do it!

How to connect to MySQL in Vagrant from your host

Recently I got the following question from Mostafa Hashem: Hi, First I need to thank you for sharing your experience with us. I need to ask you about something related to Vagrant & MySQL service. I need to connect to MySQL databases outside SSH for example fromSqlYog.  But to be honest with you I spent a lot of read further ...

Convert a file encoding to UTF-8 from a shell script

Today I had the situation where I had to convert a bunch of files to the UTF-8 encoding. All source files where in different encoding but they had to be saved in UTF-8 in order for the application to work properly. To do this I created a simple shell script.read further ...

Stress Test your site with Siege

When your developing your site on your local environment, it’s easy to get a feel of how fast and snappy it is. However, when your site goes public into the real world, problems can arise that you didn’t have before. These problems often are related to the performance of your site and the underlying course read further ...

How to get Turpentine right for Magento

If you got a Magento shop and you’ve boosted the performance of it by using Turpentine (the Varnish plugin for Magento) you’ve already experienced the massive speed and power it provides. However… If you’re Turpentine configuration in your local.xml  file is misconfigured, chances are that under heavy load, with many concurrent visitors, you’re Magento site may read further ...

How to setup Varnish from scratch

Lately I’ve been boosting performance in Magento by using Varnish cache. Now, I think most of you already know what Varnish is, so I’m not going to spend time explaining how awesome it is. Instead I’ll try to give a more in-depth explanation in this article on how Varnish works step-by-step and how it can read further ...

How to setup the profiler in Magento

Magento comes with a small built-in profiling tool. Although it’s not much, it could aid you when you’re trying to find the bottlenecks in your code. To enable the profiler, navigate to the system configuration > advanced > developer, and set ‘Profiler’ to ‘Yes’ in the debug section: The second thing you need to do, read further ...

Unit testing frontend events in Magento

When you are creating unit tests for Magento and you want to test the events you’re dispatching you can use the following code to manually trigger your events: However, you’ll find that when you’re running this test, your event doesn’t get fired at all! That’s because this particular event (and many others) are fired read further ...

7 handy shortcuts for the command-line

I use the command-line a lot. Except from the weekends I’m working on the command-line on a daily base. Today I dove into some shortcuts for the command-line and I summed up 7 of the most handy shortcuts here:read further ...

How to programmatically create URL Rewrites in Magento Enterprise

So today I had to import a bunch of 301 redirects in Magento Enterprise. Needless to say, I’m saving this one for myself, but also for you: my fellow readers…read further ...

1 5 6 7 8 9 10