Category Archives: WordPress

Tunnel mysql to run Elastic Beanstalk content from localhost

Tunnel mysqlIt is useful to be able to access your Elastic Beanstalk database (or standalone RDS database) from your own computer/localhost for staging/testing/debugging purposes. However, it is undesirable to open up the security settings so that you can access them from home. There is a way to do this all securely by forwarding all local database requests through an SSH tunnel to the Elastic Beanstalk (or other) server that already has access to the database. This is described below and is based on the instructions here: http://quintagroup.com/services/support/tutorials/mysql-linux

Continue reading Tunnel mysql to run Elastic Beanstalk content from localhost

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 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

Open source apps rock! (but they keep me from doing my school homework)

No, I didn’t create this blog application on my own. Yes, I created all the rest of my website on my own.

I have always felt empowered knowing that I can build my website and make it do whatever I want. Unfortunately, I do not have very much free time right now. Open source applications can help. This blog is powered by WordPress. I had heard about WordPress before and thought, “So what, it’s just a blogging app.” But oh, oh, oh! It has saved me loads of time. In about three hours’ time, I clicked the WordPress “Install Now!” button in my GoDaddy account manager, manually changed the default theme so that it would match my website, and made a few posts. Continue reading Open source apps rock! (but they keep me from doing my school homework)