browse the blogs

[ 6 Dec 2017 ]

Just Enough C for PHP: Variables and Types:

This entry is part 3 of 3 in the series Just Enough C for PHP. Earlier posts include Just Enough C for PHP, and Just Enough C for PHP: Running C Programs. This is the most recent post in the series. Today’s episode of Just Enough C for PHP is light on code and heavy on core concepts. First, we’re going to describe using basic variables in a C program. Then, we’re going to take a detour into how C manages the computer’s memory for those variables. You may be tempted to skip the second part, but we recommend you […]

[ 5 Dec 2017 ]

Never Worry about Symlink Argument Order Again:

One long time resident of my ~/bin folder is lns lns — a friendly program for making symbolic links For whatever reason I’ve never been able to get the argument order to ln -s memorized. The lns perl script (which has always run out of the box on system provided perl without issue) make it so I never need to. Whether you lns path/to/file path/to/new-link or lns path/to/new-link path/to/file the script does the right thing and creates the symlink, or tells you in plain english why it can’t. Mentioning the script here mainly because google seems less and less able […]

[ 3 Dec 2017 ]

Packagist Semver Checker:

Speaking of composer and sematnic versioning, here’s a neat web page that will List all the avaiable versions of a particular packagist package Highlight which versions composer will pick when you use a particular set of SemVer characters Useful when you’re chasing down composer dependencies — although this project (as of this writing) doesn’t seem PHP version aware and (obviously) is unaware of your composer.lock file, both of which can effect which packages composer thinks you need.

[ 3 Dec 2017 ]

A Story of an Individual PHP Composer Dependency Heck and how to Exorcise Said Heck:

I checked some code into pestle (my PHP command-line framework and Magento 2 code generation tool) for the first time in a bit, and was greeted with a broken travis build (for PHP 5.6). Digging into the problem, I saw a sight that’s become increasingly familiar to PHP developers in recent years $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 – Installation request for phpdocumentor/reflection-docblock 4.1.1 -> satisfiable by phpdocumentor/reflection-docblock[4.1.1]. – phpdocumentor/reflection-docblock 4.1.1 requires php ^7.0 -> your […]

[ 3 Dec 2017 ]

Using Eloquent in Symfony Projects:

While Laravel’s a fantastic framework, I don’t think anyone would ascribe Plays Well with Others as a core tennant of the project. i.e. Using individual Laravel components like the Eloquent ORM in your own projects is never a straight forward affair. They’re just not designed for that use case. This makes projects like WouterJEloquentBundle a life saver if you’re using Symfony. From the README The WouterJEloquentBundle claims to integrate the Eloquent ORM into the Symfony framework.

[ 30 Nov 2017 ]

Packagist Semver Checker:

Speaking of composer and sematnic versioning, here’s a neat web page that will List all the avaiable versions of a particular packagist package Highlight which versions composer will pick when you use a particular set of SemVer characters Useful when you’re chasing down composer dependencies — although this project (as of this writing) doesn’t seem PHP version aware and (obviously) is unaware of your composer.lock file, both of which can effect which packages composer thinks you need.

[ 28 Nov 2017 ]

A Story of an Individual PHP Composer Dependency Heck and how to Exorcise Said Heck:

I checked some code into pestle (my PHP command-line framework and Magento 2 code generation tool) for the first time in a bit, and was greeted with a broken travis build (for PHP 5.6). Digging into the problem, I saw a sight that’s become increasingly familiar to PHP developers in recent years $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 – Installation request for phpdocumentor/reflection-docblock 4.1.1 -> satisfiable by phpdocumentor/reflection-docblock[4.1.1]. – phpdocumentor/reflection-docblock 4.1.1 requires php ^7.0 -> your […]

[ 27 Nov 2017 ]

Using Eloquent in Symfony Projects:

While Laravel’s a fantastic framework, I don’t think anyone would ascribe Plays Well with Others as a core tennant of the project. i.e. Using individual Laravel components like the Eloquent ORM in your own projects is never a straight forward affair. They’re just not designed for that use case. This makes projects like WouterJEloquentBundle a life saver if you’re using Symfony. From the README The WouterJEloquentBundle claims to integrate the Eloquent ORM into the Symfony framework.

[ 26 Nov 2017 ]

Getting Started With PostScript:

On of my work hobbies is finding a way to replace Dominant Accounting Software package in my life, and because I’m a programmer (and a little weird) that means writing one off applications to repace the functionality of Dominant Accounting Software package. This is why today’s links are the wikipedia PostScript page and printing from the command line in OS X/MacOS. There will always be a bit of magic for me in making non-screen hardware respond with software.

[ 25 Nov 2017 ]

Free O’Reilly Book on GNU Make:

GNU Make is the original build system and, strange modern outliers asside, is mostly used (and useful) in C or C++ based projects. It’s syntax reflects 40+ years of — organic? — growth, and I was happy to discover this free O’Reilly book that grounds you in the fundamental concepts.