Scaling WordPress in Amazon Cloud

Scaling WordPress in Amazon Cloud

Scaling WordPress is something I’ve been studying for a long time. By nature, WordPress isn’t designed to run on multiple servers unless you do some re-architecting on the server-side. Finally I’ve found a way to scale WordPress elastically and on demand. ?What I’m about to share has worked for me personally and I don’t guarantee […]

Read More

Review: Gamify HTML5 Game Engine

Review: Gamify HTML5 Game Engine

Create your own poker games for the HTML5 Because of interconnectivity between millions of players around the world, social poker games are one of the most prominent genres of video games today. When people are asked about today’s top game genre, MMORPGs?or massively multiplayer online role-playing games?are no longer the default answers. Many experts have […]

Read More

Test Driven Development with PHP

Test Driven Development with PHP

Testing is a hot subject in the PHP world. It is not because testing hasn’t been around for eons, but more because the community is still pretty reluctant to accept it, and use in each and every project they may encounter. Main reasons for that might be that the adoption of newer PHP versions are […]

Read More

Get Paid for your work

I saw this video a while ago, but I recently came across it again and I thought this time I’ll share it. ?This video is presented by?Mike Monteiro?who talks about challenges that web designers and developers face when getting paid by their clients. ?It’s a pretty funny video titled – F*uck you. Pay me. ?If […]

Read More

Batch Resize Photos with Image Magic

Batch Resize Photos with Image Magic

I’m currently working on migrating a large publishing website form Drupal to WordPress and one of the things that occurred to me was that WordPress generates 3 sizes for each image that’s uploaded into Media Library. However, our Drupal website only contains a single image. To make the media library work nicely in WordPress we’ve […]

Read More

How to install latest Nginx on Ubuntu

How to install latest Nginx on Ubuntu

Ubuntu doesn’t always keep up with the latest stable releases of Nginx. To install latest Nginx on Ubuntu I normally follow these steps: Step 1 Add latest stable release distro to Ubuntu sources file in /etc/apt/sources.list. Replace ‘precise’ with your Ubuntu version: echo 'deb http://nginx.org/packages/ubuntu/ precise nginx' >> /etc/apt/sources.list Step 2 Add public key from […]

Read More

Mysql-bin files too large – solved

Mysql-bin files too large – solved

Newrelic?is an application monitoring tool that truly is developer’s best friend. It’s such a true statement. ?I’ve used Newrelic to pinpoint and successfully troubleshoot numerous applications. ?I’ve recently switched all database tables from MyISAM to InnoDB for a couple of reasons that are outside the scope of this post. What came to my intention is […]

Read More

Remove Files From Git History

Remove Files From Git History

Occasionally a developer might commit some sensitive information, such as passwords, in a Git repository. Although you can easily remove the file in question from the repo, Git will retain the commit history for that particular file. Fortunately, in Git there is an easy way to remove files from Git history. Let’s assume that the […]

Read More

Basic Auto Scaling configuration on AWS

Basic Auto Scaling configuration on AWS

Auto Scaling The following configuration allows me to sleep at night. It ensures that at least one EC2 instance will be running at any one time. ?The Auto Scaling CLI provided by Amazon is a simple tool that’s required for this configuration. To successfully configure auto scaling you need to follow these 2 steps: 1. […]

Read More

Create AMI image of an EC2 instance store volume

Create AMI image of an EC2 instance store volume

For my reference, these are the steps involved to create an AMI image backup of an Instance Store EC2 volume. 1. Install AMI tools. Might need to uncomment multiverse locations in /etc/apt/sources.list. sudo apt-get install ec2-ami-tools 2. Bundle the volume sudo ec2-bundle-vol -d /tmp -k /mycerts/ec2key.pem --cert /mycerts/cert-xxxxxxxxx.pem -u AWS_ACCOUNT_NUMBER -a -e /tmp -r i386 […]

Read More

Installing Python MySQLdb on OS X Lion

Installing Python MySQLdb on OS X Lion

Tonight I tried installing a Python MySQLdb module, but when I ran the setup I got the following error: sh: mysql_config: command not found Traceback (most recent call last): File "setup.py", line 15, in metadata, options = get_config() File "/Users/markotomic/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "/Users/markotomic/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config raise EnvironmentError("%s […]

Read More