whateverthing.com

Portfolio and Technology Blog
by Kevin Boyd

Make Security Your Strong Suit

Cyberspace. The freshest frontier.1

These are the voyages of the cybership n00b, on its continuing mission to seek out new synergies and explore new business relationships. To boldly go where no information security model has gone before.

If companies don't smarten up and start taking security seriously, they might find that the tech frontier can burn them worse than they can possibly imagine.

This is what happened to Sony Pictures2. This is what happened to Lenovo3. And if it happened to those companies, it can happen to yours.

There are a few things your company can do that might help prevent a catastrophic embarrassment.

Read more of this post »

February 22, 2015

Tags: opinion, management, security


Twig Tip: Configuring the Cache

It's no secret that I'm a fan of the Twig templating system. I like the syntax and flexibility far more than Smarty, PHP Templates, and other solutions I've worked with. I also like that it has minimal outside dependencies, so I can quickly add it to any project.

One of Twig's more interesting features is that it converts template files to PHP classes. This can really save processing power, because it only has to happen once and future references to that template can just invoke the saved PHP class.

However, if you forget to enable Twig caching, the compiled PHP classes are discarded after each page load - this burns a ton of resources and slows down your site.

Enabling Twig caching only requires a few magical incantations, and as luck would have it, I'm happy to demonstrate two common scenarios.

Read more of this post »

February 17, 2015

Tags: dev, development, coding, silex, opinion, howto, twig, cache, pimple


Too Many Redirects

It started with a simple question:

Ever come across a suspicious short URL and wanted to know where it really goes?

I'd just encountered one too many bit.ly links, and decided that I wanted to know where it went before I clicked on it. It's a simple exercise to find out (you can probably do it in one line in Linux, for example), but I thought I'd use it as a way to learn something new.

AngularJS is a framework for single page web applications, and I've been wanting to learn a bit more front-end technology for a little while. Anything to give my javascript knowledge a boost would be helpful, too.

Read more of this post »

December 7, 2014

Tags: dev, development, coding, silex, bootstrap, composer, angularjs