Category Archive for: Development

Drupal

How to Fix Strict Warnings in Drupal 6 Running on PHP 5.4

If you are using Drupal 6 and your host suddenly decides to upgrade their PHP version from 5.2 to 5.3 or 5.4, your site will most likely continue to work, but it will start throwing a bunch of strict warnings, even for non-logged users. The warnings will be similar to these: strict warning: Non-static method…

Read More →

VirtualBox

Cannot Create Virtual Environment in Vagrant In Windows 8.1

One of the web projects that I am working on uses—broadly speaking—MongoDB, Django, and Python. There are other technologies involved too, but these lie at the core. The project is then deployed on Amazon EC2 instances which run on Ubuntu 12.04. I do not work on the project by myself, but in a small team…

Read More →

Magento Logo

Magento Password Reset Not Working

Your customer forgets a password to her account in your Magento shop. “No problem,” she thinks, “I’ll just reset it and all will be fine.” Full of innocent optimism, she clicks on the “Forgot your password?” link on your site, enters her email address and hits “Submit”. But instead of receiving her new password, she…

Read More →

Remove Empty Form Input Fields

When a form is submitted on a website, it automatically sends all its input fields even if they’re empty (because the user didn’t fill them in). This is not always a problem—for example, if the form is sent and processed on the server and the user never gets to see what is happening under the…

Read More →

Permission denied (publickey) When SSH’ing into EC2

Recently I needed to add a new admin account on my EC2 instance, but once I created the account, I couldn’t SSH into the server for some reason. I was getting denied with Permission denied (publickey). error message. I tried the usual tips, such as: 1) Ensuring that the permissions on the user’s .ssh folder…

Read More →

Adding a New Admin User on AWS EC2 Ubuntu Instance

If you can already SSH into your Ubuntu based AWS EC2 instance with the default ubuntu user and and the default key file you generated in AWS, but need to add another admin user with their own private key, here’s how to do it: 1) Let’s assume the IP address of your instance is 123.456.789.123…

Read More →

MailChimp, Gmail, and Strange Gaps Under Your Images

One of my clients asked me to design a MailChimp newsletter template for them. Newsletter templates can be a pain as there are literally dozens of email clients, providers, browsers, and platforms that the newsletter needs to work with. Not to mention that many of these don’t support web design techniques that commonly work in…

Read More →