markoshust's blog

Mon, 06/20/2011 - 14:38

Adding trailing slashes to Magento for SEO purposes

Submitted by markoshust Mon, 06/20/2011 - 14:38

By default, Magento does not automatically add on trailing url's to the end of every URL. In a database-driven cms system, you will be penalized for this by having two urls' with duplicate content: In the case above, each of these url's will lead to the same content, causing search engines to spider both pages, and in turn penalizing your website for having duplicate content. You can either create a 404 error for one of the pages, or redirect everything to a standard url.

Mon, 06/20/2011 - 09:52

Using the new command line tool 'mage' replacement for pear in Magento

Submitted by markoshust Mon, 06/20/2011 - 09:52

Magento had a great command line tool built into it's software build called 'pear' that was located in the root folder of Magento installations. Well... it's still there, it has just been renamed 'mage' and comes with different commands to update modules, the core, etc.

Your first step in using 'mage' is to set the proper permissions to make it executable by the executing user. This can be done with chmod from the root of your Magento install:

chmod 550 mage

Then, to run it, just type ./mage in shell. You will be presented with a list of arguments to pass to it:

Mon, 12/06/2010 - 00:00

Creating a Drupal module from scratch and getting it published on

Submitted by markoshust Mon, 12/06/2010 - 00:00

Having developed Drupal modules for over a year now, and now finally getting one published (Simplify!), I have a pretty good grasp of the steps you need to take to create a module, run it through a code review, submit an application for a CVS account, and get your very own project page at I’ll try to take you through the main aspects that you need to have good understanding.

Fri, 09/24/2010 - 00:00

How to setup Subversion (SVN) on a shared web host

Submitted by markoshust Fri, 09/24/2010 - 00:00

Well, if you aren’t privileged enough to host with my hosting company, Insider Host (shameless plug), then you may stumble upon a shared web host that doesn’t have Subversion installed (shame on them! unless they are using Git…). That doesn’t mean you can’t install SVN if you have SSH/shell access.

Thu, 09/02/2010 - 00:00

Webmin boot autostart bugfix for CentOS

Submitted by markoshust Thu, 09/02/2010 - 00:00

Webmin not autostarting on boot? Sometime over the last year or so, for some reason Webmin stopped starting after a reboot. I’ve always done a manual restart with a:

/etc/init.d/webmin start

command, so I figured added it to


would fix it. But it didn’t.

Apparently, Webmin has a separate startup script of:


So, to fix the boot startup issue, just add that snippet to your


file, and it will correct the problem!

Tue, 08/31/2010 - 00:00

Create your own version of ChromeOS with Ubuntu

Submitted by markoshust Tue, 08/31/2010 - 00:00

We are all eagerly awaiting the release of ChromeOS in November. But why wait? You can easily hack Ubuntu 10.04 into a minified (yes, it’s actually a stripped down further) version of ChromeOS. Sure, it won’t have all of the built-in security and other features that may be absolutely necessary for a production-level install, but it will give you sub-5 second boot times, while automatically logging you in and presenting you with the fabulous Chrome window directly after boot.

Mon, 01/18/2010 - 00:00

How to beat Slowloris HTTP DoS attacks

Submitted by markoshust Mon, 01/18/2010 - 00:00

I’ve recently been involved with a site that was experiencing a heavy level of Slowloris attacks. Slowloris is a DoS (Denial of Service) attack that was made with a very simple agenda – to shutdown websites with a very low-level attacking client. It seems to mainly affect Apache, the most popular web server in the world (newer web servers such as Lighttpd and nginx are unaffected).

Thu, 11/19/2009 - 00:00

Backup an Amazon Web Services (AWS) EC2 instance to S3 and register it as an AMI

Submitted by markoshust Thu, 11/19/2009 - 00:00

Here is another hot topic that seems extremely confusing from the start, but is actually very easy to implement. Amazon Web Services EC2 seems to be the most fully-featured cloud-based web services on the internet. Amazon was the first major party to rollout a massive network of VM’s in the ‘cloud’ and remains to be the highest-respected service out there for Linux computing.