Sam's notebook

Spaces around dots March 8th, 2016, 2PM


One of the first odd things that one finds when starting to work with WordPress code is the excessive use of spaces. Something like: do_something(‘Words of ‘.$widget->noun($attrs[‘ish’])); becomes the the stretched out: do_something( ‘Words of ‘ . $widget->noun( $attrs[‘ish’] ) ); Which is fine, and actually now I’ve been using it for a decade I’m […]

[No comments] [Keywords: , , , ] [Permanent link]

Composer repository URLs can't use UNC paths? April 8th, 2014, 7PM


It would seem that when using Composer on Windows, one cannot use UNC paths as repository URLs. That is to say, the following doesn’t work: { “repositories”: [ { “type”: “vcs”, “url”: “//SERVER/Share/project.git” }, ] } Instead, the share must be mapped and the mapped drive letter used: “url”: “G:/project.git” This does, of course, have […]

[One comment] [Keywords: , , , , , , , , , ] [Permanent link]

When Apache invents filename extensions and /index = /index.php January 7th, 2013, 3PM


I have now had this problem about every year for the last three or four years, and every time have completely forgotten how I resolved it the previous time. It’s especially annoying, because usually involves searching for such common terms as index.php, apache, directory, etc. which result in almost entirely useless information. So, here, for […]

[4 comments] [Keywords: , , , , , ] [Permanent link]