Tag Archives: web development

Migrate AWS Elastic Beanstalk from t1.micro to t2.micro

red health errorI wanted to convert my AWS Elastic Beanstalk instance from using t1.micro to t2.micro since the t2.micro instances cost less and are now the recommended way to use Elastic Beanstalk. However, if you simply just change the instance type to t2.micro, the instance environment will change to a red error state and you will get the following error message:
error details

Launching a new EC2 instance. Status Reason: The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request. Launching EC2 instance failed.

Overcoming this error and switching to t2.micro is not difficult, but it also is not obvious how to do it. The following instructions show how. Continue reading Migrate AWS Elastic Beanstalk from t1.micro to t2.micro

WordPress: How to get the Category ID on a category page

I was trying to add some custom code and links to my WordPress category pages (the category.php file), but there was no quick and obvious way to get the category ID into the PHP code. After searching around on the web and not finding anything close to what I wanted, I started digging around in the WordPress code and figured out a really short and good solution: Continue reading WordPress: How to get the Category ID on a category page

How to track Facebook likes/unlikes in Google Analytics

It is nice to be able to track various statistics for your website using Google Analytics. It really helps you understand what pages web traffic tend to visit, how they get there, etc. Another nicety is to track social media responses (e.g., Facebook like button clicks) to your pages. You technically can track Facebook like button clicks using the the Facebook Insights tool (http://www.facebook.com/insights/), but it really is very limited and I have found it to be buggy. I prefer to use Google Analytics to track these social media responses because you much more easily see what pages received the responses, how many responses, and correlate it with other metrics available in Analytics. You can even track several social interactions other than just Facebook while you’re at it (like Twitter, Google +1 and even AdSense). The major selling point is accessing all of this from a single tool. Continue reading How to track Facebook likes/unlikes in Google Analytics

How to add images to WordPress custom menu links

My blog is a WordPress blog. I think it is a good platform for a blog, but occasionally I will find small shortcomings. One such shortcoming is no obvious way to include an image in a custom menu link. Let me explain: In WordPress, you can create a “custom menu”, which can then be included in various places on your blog. For example, I use a custom menu for my main navigation menu (the one at the top of this blog that has the links “Blog Home”, “About Me”, “Blog Rationale” and “Blog RSS Feed”). The problem is that when you create a menu and add a custom link to the menu (see reference figure below), it only shows options for a link URL and a text label (no option for adding an image). Continue reading How to add images to WordPress custom menu links

Can’t Create AdSense Account – Email Address Already Used / Exists

I was recently cancelling my old Google AdSense account so that I could create a new one with the email address that I use for all of my other Google accounts. However, AdSense wouldn’t let me create the new account. When I would try to choose the option that “I have an email address and password (Google Account) I already use with Google services” and select to use my existing Google account for AdSense, it gives an error that my email address is already associated with an AdSense account. I had never created an AdSense account with this email address, so why was it saying this?

I had performed many searches trying to find the solution to this, but could not find any answers that worked for my situation. By fortunate chance, about a week later I fell upon the answer. Continue reading Can’t Create AdSense Account – Email Address Already Used / Exists

Host a domain from a different GoDaddy account

Hosting domains in one account from a hosting service in another account.My brother and I recently started working on a web project, and we were trying to come up with a good name for it. Unfortunately, the first two names I had thought of were not available as domain names. I told my brother, and he thought of some similar related names, found one that was available as a domain, and purchased the domain immediately. The problem was that he owned the domain name (with his GoDaddy account), but we were going to use my hosting account which is with my GoDaddy account (not his.) My first suggestion was to transfer the domain to my account. My brother wasn’t fond of this idea, but GoDaddy doesn’t allow transfers of domain names for 60 days after they have changed ownership. Fortunately, they do allow you to “push” a domain from one GoDaddy account to another GoDaddy account. But, my brother still didn’t want to give up the domain name that quickly. So, I had to find a different way to do it. Continue reading Host a domain from a different GoDaddy account

Finding out your GoDaddy hosting account IP address.

To find out your GoDaddy hosting account IP address, follow the steps below. I am fairly certain that the IP address you find is constant and will not change unless you change it yourself.

  1. Log into the GoDaddy hosting account that you want to find the IP address of.
  2. Click on the “My Account” link.
  3. Click the “Manage Domains” link.
  4. Click on the domain name you want to have hosted from the different GoDaddy account.
  5. You are now at a “Domain Details” page. There are a lot of links here. In the main box where the most links are, click the link labeled “Total DNS Control and MX Records” (it is under the “Total DNS” subsection.)
  6. On the new page, the “@” entry under the “A (Host)” section contains the IP address of your host. It is shown under the “Points To” column.