Troubleshooting VS Code, xDebug, and Laravel Valet on macOS

Problem: xDebug is not showing up in phpInfo() output Run <?php phpInfo(); in a browser and look for “with Xdebug” like is shown near the bottom left of this screenshot: There’s also a large section of xDebug settings near the bottom of the page. Here’s mine: If you do not see xDebug in these locations… Continue reading Troubleshooting VS Code, xDebug, and Laravel Valet on macOS

Solving a Confusing MigrationBlocker While Moving to Azure SQL Database

This week, I’m altering functions and stored procedures in a SQL Server 2008 database so that it can be migrated to Azure. The Data Migration Assistant does a great job of generating reports identifying MigrationBlockers, but one type of error was vague enough to confuse me for a few minutes. Here’s an example of that… Continue reading Solving a Confusing MigrationBlocker While Moving to Azure SQL Database

Classic ASP and Server.GetLastError in IIS7

My classic ASP error logging scripts were dead in the water when I moved them to a Windows Server 2008 with IIS 7.0. Some code like this is useful to record errors in a database: dim objErrorInfo, errorStringStr set objErrorInfo = Server.GetLastError errorStringStr = objErrorInfo.File & “, line: ” & objErrorInfo.Line & “, error: “… Continue reading Classic ASP and Server.GetLastError in IIS7

Disguise Email Addresses for online publishing

Disguise your email address or any text with this character obfuscation. This code &#99;&#111;&#114;&#101;&#121;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109; will show up on a web page as [email protected]. You can share your email address without worrying that it will be collected by a spam bot. Enter some plain text Obfuscate Some losers send spam email for a living, and will… Continue reading Disguise Email Addresses for online publishing

Label tag width not working

The <label> element will not accept a width value in FireFox, and I just spent way too long finding a workaround. The label element is used to associate a text label to a form control that does not automatically have a label. Short answer: float left makes width work on label elements. When assigning a… Continue reading Label tag width not working