markoshust's blog

Thu, 11/07/2013 - 10:08

Creating a Node.js Server/Client with Socket.IO & MySQL

Submitted by markoshust Thu, 11/07/2013 - 10:08

Personally, I find Node.js to be completely fascinating. It's a direct lineage of Atwood's Law, that "any application that can be written in JavaScript, will eventually be written in JavaScript". Even the server. This, my friends, in a day of jQuery and JSON starting to rule the world, is a beautiful thing.

Tue, 05/28/2013 - 18:54

How to install OroCRM on Mac

Submitted by markoshust Tue, 05/28/2013 - 18:54

Being that I'm pretty heavily involved in Magento, I'm following OroCRM, the open-source content relationship management tool, created by the guys who were very actively involved in Magento's development (Yoav & Jary). I'm very excited about this piece of software, as there is very-much lacking an awesome PHP-based CRM software platform. It's also pretty neat that they released Oro Platform as well for developing all sorts of things (besides just CRM software piece).

Sat, 05/25/2013 - 13:06

My suggestion on setting up Magento's app/etc/local.xml file for dev/stage/prod environments

Submitted by markoshust Sat, 05/25/2013 - 13:06

It seems as though everyone always wonders what to do with app/etc/local.xml, and how to best manage it when deploying from development to staging and production. It took me a while to figure this out, but I think I found a really good way.

Mon, 05/20/2013 - 18:29

My review of Instant Magento Performance Optimization How-To by Nayrolles Mathieu

Submitted by markoshust Mon, 05/20/2013 - 18:29

A few weeks ago, I was contacted by Packt Publishing to write a review on a new performance eBook that was available titled Instant Magento Performance Optimization How-To written by Nayrolles Mathieu. Since I always love to play devil's advocate and try my best to criticize everything (my guilty pleasure ;), I gladly accepted the challenge.

Mon, 04/01/2013 - 10:22

How to setup a chroot'd SFTP account in Linux

Submitted by markoshust Mon, 04/01/2013 - 10:22

When I went to create an SFTP account for a client, which needed to be chroot'd (~ locked down to that directory), I really didn't think it would be that difficult. Setting up regular SSH and FTP accounts is usually pretty straight forward, and actually so is creating SFTP accounts. But when you add in the ability to chroot it, it becomes a bit more complex. There aren't too many good straight-forward writeups about this online that actually explain things in any detail, so I did my best and tried to keep it simple.

Fri, 01/18/2013 - 15:32

Install ionCube loader on Mac OS X

Submitted by markoshust Fri, 01/18/2013 - 15:32

It might look to be a little tricky to get ionCube Loader installed on Mac OS X, but it's actually quite easy. The ionCube Loader lets you decrypt ionCube-encoded projects so you can run software that is encrypted by the developer, or software which may be protected to specific domains and/or locations.

First, you need to visit the ionCube Loader download page.

Fri, 11/02/2012 - 11:43

Why you shouldn't use the core diff feature of MageUpdate

Submitted by markoshust Fri, 11/02/2012 - 11:43

I feel as though I have to post about this sooner rather than later. A day or two ago, Kalen of MageUpdate posted an article, Mage Core: Keeping It Clean. The idea of the script is to check your Magento installation for properly coded modules. In theory, this is an absolutely great idea, because I can certainly attest that there is a plethora of garbage modules and extensions out there.

Looking into the script details, it's a simple two-step process:

Mon, 10/29/2012 - 23:27

Deploying Magento on Heroku with Amazon RDS

Submitted by markoshust Mon, 10/29/2012 - 23:27

Heroku is a very powerful application deployment system that was initially created for Ruby on Rails apps. But, did you know that Heroku quietly released support for PHP 5? Well, they did, and I will tell you how to deploy Magento to Heroku using Git and Amazon RDS.

Your first step is to unzip your fresh Magento install and get it on git.

Mon, 08/27/2012 - 11:12

Create the checkout_cart_product_add_before observer in Magento

Submitted by markoshust Mon, 08/27/2012 - 11:12

For some reason no one can explain, it appears that the event observer checkout_cart_product_add_before never existed in Magento (even though checkout_cart_product_add_after does). Say what?!??

Anyways, it's fairly easy to go ahead and dispatch this event. Just add this to your module's config.xml to rewrite the checkout/cart model:

Wed, 08/08/2012 - 09:56

Better way to modify conditions in Magento template files

Submitted by markoshust Wed, 08/08/2012 - 09:56

As it is with almost all Magento projects, you will have times when you need to modify sections of code in custom template files. There are many approaches and ways to handle these changes, but there are some that are more optimal than others.

There is a special case regarding code blocks within conditional logic in which I like to take a certain approach. Let's say we need to make updates & changes to the following file: