Bryce Fisher-Fleig

Fullstack Forrays into Web Development

Securing SSH with Multiple Keys

04 Sep 2014

It’s a great idea to use specific ssh-key key pairs per service (or per repository even). Even if your keys are compromised, they don’t allow your attacker to access any other services. Unfortunately, these services often assume you’ll use the default key pair (id_rsa).

7 Alternatives to Amazon CloudFront CDN

27 May 2014
A comparison of the top content delivery networks for web content in 2014 with my recommendations. I'll be focusing on the needs for encryption and static html content.

Using AWS CloudFront Behaviors with HTTPS for Planet Drupal RSS

30 Apr 2014
Many RSS validators and aggregators (including Planet Drupal) do NOT work over HTTPS. If you're using CloudFront to serve your site exclusively over HTTPS, I'll show you how to configure an additional behavior to switch specific URL patterns back to HTTP.

Avoiding the Duplicate Content Penalty with AWS S3 and CloudFront

26 Apr 2014
Google and other search engines penalize content plagiarized from other sources. However, if you're using S3 as an origin server for CloudFront, you may be in danger of the duplicate content penalty! This post explains two strategies to combat this problem.

Setting Up SSL on AWS CloudFront and S3

24 Apr 2014
I've just setup this blog using an S3 bucket as the origin server, CloudFront as my CDN, and SSL for under $10. Since there were so many articles to read along the way, I'm gathering up what worked for me all in one place.

A Super Handy Translation Checklist

14 Mar 2014
I've put together a checklist of some DO's and DON'Ts that I've learned that help me review someone else's code or even my own code before forking over the big bucks to a translation company.

PHP: What Does function ...() use () syntax mean?

31 Jan 2014
Mastering some of more idiosyncratic syntax of PHP is tricky these days with a much faster release cycle in recent years. Here's one syntax that I've seen a lot lately in PHP's "Closures" (aka lambda functions) but could never wrap my head around until tonight: the mysterious PHP function use syntax. TL;DR - use() passes variables from the scope outside the closure into the closure itself. If you're used to closures in JavaScript, get ready for a new twist.

Using hook_menu to capture custom menus in code

14 Jan 2014
A how-to guide on creating a public-facing menu using hook_menu(). We'll also talk about why hook_menu is so bad, 2 techniques for nesting menu items, and how to put a menu item into the menu of your choosing.

Considerations for Multisite Drupal

28 Dec 2013
At my day job, we've been using the Domain Access module with Drupal 6 for 5 years. Recently, we've decided it's time to rethink our approach to Drupal multisite. In this article, I'll share some of ideal use cases and pitfalls for the Domain module and some alternatives for you to consider.

Best Practices for Translation in Drupal

13 Dec 2013
I'm sharing lessons learned from my experience using Drupal 6 and i18n for translation. The long story short: Make translation easier by keeping things simple. Don't use the t() when you can keep translatable strings fully in the database, and don't break up individual strings into multiple t().