Archive for April, 2015

Worthy of Distribution: Angularjs patterns

Feel like you've gotten 'over the hump' on getting AngularJS to do what you want? Check out the video below to help save yourself from being overly analytical for your project structuring and avoiding common pitfalls (and general javascript pitfalls) for moving on to the "next level" for AngularJS development.   https://www.youtube.com/watch?v=UlvCbnKAH3g...
Read More

A PHP bug – really? (custom session handlers)

It's not often I ramble about PHP, since it's my bread and butter. But after perusing the RFC notes to get up to speed on the PHP 7 pipeline, I found this: https://wiki.php.net/rfc/session.user.return-value That bug has been around for how long? I'm amazed folks with pitchforks haven't come out on that one...
Read More

PHP 7 Roundup – implicit ‘array to string’ conversion

Feast your eyes upon this: https://wiki.php.net/rfc/array-to-string If you've been in the trenches for a long time, chances are you've been bitten more than enough by the implicit array to string conversion as such: [crayon-5b2e0519838e9936933347/] It will now look like this in PHP 7: [crayon-5b2e0519838f0258257536-i/]    ...
Read More

PHP 7 Roundup: Chainable ternary awesomeness.

Feast your eyes on this: https://wiki.php.net/rfc/isset_ternary This eliminates quite a bit of 'noise' and 'fluff' use in any display logic, it's a new ternary operator that allows you to quickly set a default without doing the isset() dance. This has a limited affect if you use a templating engine like Twig, but it's...
Read More

A better way to give Logstash permissions to your logs

So you're ready to rock out Logstash to ship your logs - there's one little headache: You still need to give it access to your files. Chances are, you want "all of the files!" The internet will (at the moment) instruct you to use "setfacl", or various chown/chmod techniques or even...
Read More

How to use PHPUnit installed by composer in PHPStorm

Ever wonder how to properly use those packages installed from the require-dev section of composer.json? Ideally you'd integrate them with your IDE, or perhaps set up your system path to access it via vendor\bin\phpunit - If you use PHPUnit, take a quick look at this on how to properly set up...
Read More