Sean Reiser

Hi I'm Seán Reiser, this is my Personal Blog

#NewYorker #DrupalDeveloper #InfoSec #Photographer #GEEK #Whovian #MYSTie #LetsGoYankees #LongSufferingJetsFan #NAKnight #Quinquagenarian #CommitAwesome

So, this ad has been popping up _a lot_ in my timeline and it annoys me. The reason designers build art sites on a white cube / black box esthetic is simple: If your art website's design is memorable, it's detracting from your art. The only thing a visitor should remember about your art website is your art, everything else should just get out of the way. It's why museums hang works of paintings and photographs on white walls.

At the end of the day, which would you rather hear:

"I love the design of your website"


"I love your art"

OK, I’m trying the best way to handle this:

On a Drupal 7 site I had a poor man’s URL shorter.  I create a slug by encoding a node’s NID using an algorithm that wouldn’t contain a vowel.  In hook_boot I’d test to see if there was a vowel and in the URL’s path.  If there wasn’t I’d decode the slug and redirect to /node/nid otherwise Drupal would continue doing its thing.   Since all the content is in English any aliases would contain vowels so I was OK.  It worked well and would redirect before Drupal fully bootstrapped, saving some cycles.

I’m thinking about moving this to Drupal 8.  I’ve been debating between building a module with an event subscriber and just putting the code at the top of settings.php.    Any thoughts or advice please answer on stack exchange.

A quick PHP one liner to calculate US Thanksgiving day. Leaving this for future reference.

    $thanksgiving = date('m d, Y', strtotime('fourth thursday of november '.date('Y')));