A call stack for PHP

So, I’ve not come across any useful tool, like VisualStudio, that has an interactive callstack.  Next best thing?  This function from PHP: debug_print_traceback.

Give it a go.  Besides just a bunch of echo/die statements, you might want to use debug_print_traceback to help identify from where a common function is called.

Odd SSL forcing

I’ve been with my wife at the hospital today and have been working on the BluePrint-Q Tones while she rests.  Inbetween sessions, exactly one of the websites that I develop on localhost stopped loading properly.  I saw a ton of errors like this in the browser console: GET https://localhost/tbs/wp-content/plugins/bpq.banners/bpq.banners.css?ver=1.4 net::ERR_CONNECTION_REFUSED Eventually realized that all of…

Debugging tooltips

I use Bootstrap’s tooltip feature.  It certainly improves design from the default browser implementation, but it can be a pain to debug because it disappears as the element is inspected.  Forcing the ‘hover’ state does not do the trick either.  As a result, you can force open all tooltips with a bit of Javascript, like…

Cannot autoplay on Android

I have a radio app in development.  It works great within a desktop browser.  Unfortunately, it has problems on phones.  The biggest problem on Android is that the music would not autoplay when the page loaded. After debugging, I found that the ‘play’ event was not being called – this is the event that should be…

Benchmarks on WAMP 2.5

WAMPServer is the tool that I use to develop websites locally.  It is made up of three distinct technologies – Apache, MySQL, and PHP. I recently upgraded from WAMP 2.4 (Apache 2.4.4, MySQL 5.6.12, PHP 5.4.12) to WAMP 2.5 (Apache 2.4.9, MySQL 5.6.17, PHP 5.5.12).  At the time, I was developing an application with an AJAX…