markoshust's blog

Wed, 06/29/2011 - 15:41

Controlling how static blocks are displayed in Magento

Submitted by markoshust Wed, 06/29/2011 - 15:41

To disable a static block globally, go to CMS > Static Blocks > Select One > set Status = Disabled > Save To control the disable of static blocks on various pages, to go CMS > Widgets > Select One > Reference 'Layout Updates' section To remove a specific block for a specific page, go to CMS > Pages > Manage Content > Select One > Click the currently published Revision number on the initial page > Click the Design tab on the left > In the Layout XML section paste in the appropriate block of code dependent on the block you want to remove, for example to


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: http://yourinstall.com/home http://yourinstall.com/home/ 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 drupal.org

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 drupal.org CVS account, and get your very own project page at drupal.org. 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

/etc/rc.d/rc.local

would fix it. But it didn’t.

Apparently, Webmin has a separate startup script of:

/etc/webmin/start

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

/etc/rc.d/rc.local

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).