Script Storage Update

This is an update to a previous post. In another post on this site, it was said that Dropbox Paper is the code storage of choice. This has changed. As of today, I much prefer using Microsoft’s GIT code repository known as: The benefits are numerous. Ability to revert back to previous versions Ability […]

Script Storage

Update here: Script Storage Update Throughout my career, my scripts have been a vital piece of my work. Where I store them has changed over the years. The challenge has been in finding a repository that is reliable, searchable, accessible from where I work, and that looks good with color-coding. Additionally, I don’t want to pay […]

HTML Checkboxes

Occasionally, you discover something that you have been doing wrong for a long time.  Sometimes it wasn’t something outright wrong but was just stupid.  That is what happened to me. When using an HTML checkbox, it “POSTS” to the form submit page with the value of “on”.  I have always converted that on the page […]

PHP and jQuery – Reduce Long String to Preview Length and Reveal Full Text OnClick

Goal: Reduce long string to specified length for end-user preview.  Reveal entire string when clicked.  Go back to preview when clicked again. See Example Step 1: PHP Code [code] static function ReduceStringForPreview($text,$size=100) { define($reduced,”); if(strlen($text) > $size) { $reduced .= ” “. substr($text, 0, $size); $remaining = substr($text, $size); $reduced .= “…$remaining “; $text = […]