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 […]
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 […]
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 […]
I spoke to one of my colleagues the other day and he told me about the pebble watch and how awesome it was. ?I’m always on the lookout for new tech gadgets and ?the pebble watch is now right on top of my wish list. ?I found this great video on Vimeo which sums it […]
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 […]
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 […]
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 […]
Every time I want to generate Nginx htpasswd I forget how to do it. This is just for my reference so I don’t have to search for a solution on the Internet. Apache comes with htpasswd utility, but I strictly run Nginx these days and don’t really need Apache or any Apache related utilities on […]
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 […]
I’ve been working with Nginx web server for a while now. I have to say it’s an impressive web server that performs really well on high traffic websites. I’m in the process of migrating all my sites from Apache to Nginx. I am about 80% there after migrating WordPress and Joomla sites to Nginx without […]
When you write articles in WordPress, your revisions will periodically get saved in the database. This is a useful feature, however, each revision that is saved by WordPress results in a new record in your MySQL database. I don’t have a problem with having revisions stored in the database for my recent articles, but I […]
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 […]
If you have a WordPress website that is live and don’t have it set up locally on your computer or laptop, you’re doing it wrong. To install WordPress on your local machine is a breeze. Why should you install WordPress on your local machine before running it on production? If you have a WordPress site, […]
I’ve been doing a lot of freelance work lately and one thing I really wanted to improve on was how to write a good Web Development Proposal without spending hours and hours on it. There’s nothing worse than spending hours and sometimes days on writing a proposal, only to see it get rejected. Well my […]
Almost every site I build requires WordPress login / logout functionality and I haven’t been able to find a standard way of adding a login/logout link to the primary menu of my theme. I wrote this little filter that works like a charm and what I really really like about it is that when user […]
Occasionally I need to take my sites down for a regular maintenance and I’ve come up with a pretty neat way of setting up a?website maintenance page?using Apache mod rewrites. Once the rewrites are in place, you don’t need to restart your Apache webserver for any subsequent maintenance periods. ?The idea is to simply drop […]
I don’t know if I’ve mentioned this before, but WordPress has become my favourite open source tool ever. There is very little that you can’t do with it. I like how you can hook into almost any core WordPress functionality and last night I had to modify the??wordpress login widget. The problem I solved was […]
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. […]
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 […]
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 […]