Simple Saturday – Paul Hayes https://paul-hayes.org Sat, 10 Dec 2016 22:58:32 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Get OpCache running on scotchbox : Simple Saturday https://paul-hayes.org/2016/12/10/get-opcache-running-on-scotchbox/ Sat, 10 Dec 2016 22:58:32 +0000 https://www.paul-hayes.org/?p=41 Working on a Drupal8 project and using scotchbox for the dev enviroment does not have OpCache enabled by default.

You’d think that the php.ini file to enable it would be in /etc/php5/apache2/php.ini, but you’d be wrong.

The setting is actually in /etc/php5/apache2/conf.d/user.ini .

]]>
Simple-Saturday: Easy Way to Format Your Select Query Results. Ain’t Nuthin’ but a \G Thang. https://paul-hayes.org/2016/07/09/simple-saturday-easy-way-to-format-your-select-query-results-aint-nuthin-but-a-g-thang/ Sat, 09 Jul 2016 18:17:36 +0000 http://www.paul-hayes.org/?p=20 Most of the time, when we do a query, we get a large jumble of results like so.

Select without \G

If you use the’\G’ at the very end of your query, your results are better formatted, like so.

Select with \G

A much better alternative when querying against tables with 10 or more fields, I think.

]]>