skip to Main Content
+971 55 881 1725 hmimthiaz @

Upgrading RAM for my 27 inch iMac mid 2011

I had 4GB RAM which was the default when I bought the mac. After upgrading to Mac OS Lion I really needed more memory, Especially when I am working with Xcode. Local cost was around AED 580 (160 USD) for 2X4GB. Next option was to check online and Amazon came to rescue. Cost for 2X4GB was USD 43 international shipping cost was USD 42. Got greedy and ordered 4X4GB. Posting few pictures I took while changing the RAM….

Buy: Kingston ValueRAM 8GB 1333MHz DDR3 Non-ECC CL9 SODIMM

Help: Installing iMac Intel 27″ EMC 2429 RAM

Imthiaz’s Blog powered by Amazon CloudFront

I have been experimenting with Amazon Web Services for sometime. I was successful in offloading media traffic with the help of Amazon S3 and Amazon CloudFront plugin for WordPress. But it was never enough. Please don’t think my blog traffic is very high, but this is the only website I have with which I could experiment and explore the new frontiers of cloud.

Two weeks ago I decided that I should start serious blogging again and as a part of commitment I would move the blog to a better hosting environment. Moving to Media Temple about a year ago was one of serious mistake. In terms for the scaling etc, media temple is good. In terms of server management I missed WHM and Cpanel very much. Plus media temple has many uninformed outages for my blog which was seriously disturbing for me.

Once again I was out searching for cloud based hosting. I experimented with Amazon EC2 micro instance which turned out awesomely bad experience. The instance never had dedicated CPU so my blog could get stuck for few seconds at times and it was bad. I started checking out some my previous hosting companies. Westhost had moved to cloud based hosting solution and their reseller hosting package was under my budget and was loaded with WHM. Moved all my sites to the new hosting environment.

After moving the site I decided to serve my blog with Amazon CloudFront. CloudFront has a feature to serve files from custom origin. With this feature I can create a distribution and point the source of the distribution to my web server. For more information on this please refer Amazon documentation for CloudFront.

Comments – When you use CloudFront the communication is one way, so having WordPress comments is out of the question. I have to look for hosted comments system. LiveFyre came to rescue, and it has 100% compatibility with WordPress.

Mobile Theme – CloudFront supports single cache for a page, So having a separate theme for mobile was not applicable. My friend Shuja Shabandri suggested to use responsive theme. After searching for a while I came with simple and responsive design Bugis by Elmastudio.

Content Expiry – CloudFront by default does caching for 24 hours. I had to reduce the caching to 30 minutes for HTML and others to 24 hours. For this I used Expires Headers from Apache.

Will be updating more on this latter 😉

Update: Did a load test using Load Impact Free Load Test and the load time were impressive…

AWS – Adding extra EBS volume to your EC2 instance

When you boot an Amazon Linux EC2 instance it boots with a 8GB EBS volume. If you need more space you need to add additional drives. For this you need to use EBS volumes.

Before you start the process please have look at the current partition blocks loaded in your server. You can do so using the contents of partition file.

Now you goto EBS volume manager in AWS console and create a new volume, make sure the zone is the same in which your EC2 instance is running.

Once the volume is created you need to attach this to an instance. You can right click on the created volume and say attach. Select the instance then device will populate automatically, you can either leave it or change if you need specific device name.

Now check the partition file again. You can see a new device being added.

The volume attached is not ready for use. It is like a new hard disk. You need to partition and format the same. In our case I am going to use the full disk as one partition. So I am going to skip the fdisk setup and jumping right into formatting the volume.

The format process can take few seconds just be patient. The drive is ready to use, and to do the same we need mount it.

If you wish this device to mount automatically when you reboot the server make sure you add this to your fstab file.

When I started which Amazon Cloud, I found these things in a hard way, hope this can help someone 🙂

Amazon IAM Policy – Readonly Access to single s3 bucket

IAM policy can be used to give readonly access to a single S3 bucket in Amazon cloud for a particular user.

WordPress S3 plugin updated to 1.1 Alpha

Past couple of days I have been focusing hard to optimize my blog. Related to this I have been working on the next version of s3 plugin.

This version supports the following

  • Uploads any media file in the blog to a CDN
  • Support for cloudfront
  • Expire headers
  • Support for CSS and JS compression
  • Dynamic Cache prefix

Other developers can use this plugin to upload the files to s3 for example

1. This will scan the given content for images belonging to same domain. And will schedule the images for s3 upload. If the upload is done it will replace them in the text.

2. Advanced if you are control freak like me you would like to get more options.

If you are interested in testing please download the wp-s3 1.1 Alpha or checkout from wp-s3 plugin repository trunk.

And another happy new is my blog got a descent page speed score with this plugin update 😉

Note: Please not this plugin is in alpha stages. Please test this on local test environment before testing it on production sites.

Back To Top