Sam's notebook

Spaces around dots March 8th, 2016, 2PM

Programming

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

Programming

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

Programming

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]

Extracting coordinates from single 60 bit hex numbers July 1st, 2010, 4PM

Programming

Thanks to the wonderful people on Stackoverflow, I’m making some progress with figuring out how some geographic information is saved in a DB2 database that I’m working with. it turns out that, rather than using the spatial functionality of DB2 (which would make sense, but considering the source of this database, I wouldn’t ask for […]

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