Author Archives: Martin Mapes

How to chain containables in CakePHP and still select specific fields

I have an application with deeply nested models. I want to select several specific fields from a multi-layered “slice” of the data. And since we’re using CakePHP, I want to use Cake’s methods rather than writing my own custom query. … Continue reading →

Posted in Uncategorized | Leave a comment

Favorite git GUI clients in 2019

I’ve been looking for a new git GUI client in 2019 Why not just learn the command line, asks the smart guy in the room? Well, I have learned the command line, and I’ve even created some of my favorite … Continue reading →

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Review of Toyota Prius Key Fob Cover Case Shell Replacment with Blank Key 2004-2009

Yes, they really spelled it Replacment and not Replacement. This is a review and critique of the the product called “Toyota Prius Key Fob Cover Case Shell Replacment [sic] with Blank Key 2004-2009” sold on Amazon.com at https://www.amazon.com/gp/product/B015KEW8QO/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 I ordered … Continue reading →

Posted in Uncategorized | Tagged , , | Leave a comment

How to opt out of data sharing at Boulder Community Health

Boulder Community Health (BCH) recently implemented a new Electronic Health Record (EHR) software system. The system is provided by Epic Systems. I have decided to opt out of as much information sharing as I possibly can. In part, this is … Continue reading →

Posted in Uncategorized | Tagged , , , , , | Leave a comment

CakePHP 2.10 is not cleaning up fixtures

CakePHP has infrastructure to remove tables created in the test database as fixtures. The documentation implies that these tables will be removed as part of the test cleanup. But it is not happening. Here is where it fails. This class … Continue reading →

Posted in Uncategorized | 1 Comment

Adding a domain to a PositiveSSL Multi Domain certificate for web sites hosted on a CPanel installation

You have to “reissue” the certificate. First step is to create a new Certificate Signing Request (CSR) on the host. CPanel allows you to put multiple domains on the CSR, and that’s how you add a new domain to an … Continue reading →

Posted in Uncategorized | Leave a comment

How to Unit Test a CakePHP Console (Shell) Command — An Example

Wow, it sure took me a long time to find an example of how to write a unit test for my CakePHP console (shell) commands. There’s no how-to in the CakePHP documentation, and the only blog post I could find … Continue reading →

Posted in CakePHP, Testing | Leave a comment

Why Doesn’t XDebug Work? It Used To.

I found myself asking (again) why XDebug wasn’t working, after installing a new IDE. I’d set a breakpoint, debug the page, but never see the code stop. I had trouble getting it to run the last time I tried a … Continue reading →

Posted in Debugging | Tagged , , , , | 2 Comments

What’s the deal with wp_enqueue_style (and why does WP documentation suck?)

I’m implementing a child theme for the WordPress template twentyfourteen. I followed the simple directions at WordPress’ Child Themes page. Yet my styles were not showing up. Not only were they not overriding the parent styles, Firebug showed that they … Continue reading →

Posted in CSS, Webmastering, WordPress | Leave a comment

Simpler than WordPress — or is it?

“Hey, Mart, can you post the latest newsletter to my web site? By the way is that something I can do easily?” I have many clients for whom I’ve built web sites. I usually try to let them make updates … Continue reading →

Posted in Uncategorized | Leave a comment