Skip to content

Instantly share code, notes, and snippets.

View cspray's full-sized avatar

Charles Sprayberry cspray

View GitHub Profile
@cspray
cspray / cv-ring-description.md
Created January 27, 2012 15:55
A brief description of cv-ring and cv-pls

What is 'cv-ring', 'cv-pls' and 'delv-pls'

In the Stack Overflow PHP chat you may notice the regulars using tags like cv-pls, cv-ring and delv-pls. These tags are used only in the chat room to communicate with other users that a question or answer may need more votes to be closed or deleted. The PHP tag has a lot of inferior quality and duplicative information on Stack Overflow. We feel that inferior quality questions bring down the site and make it harder to find good information, particularly about PHP. By closing and merging these questions as appropriate you'll find the information you need quicker.

  • cv-ring is just a 'funny name' we give to the group of regulars who use the tags
  • cv-pls is an in-chat tag that communicates "Hey, this question may be of inferior quality. Check it out and, if you feel appropriate, cast a close vote."
  • delv-pls is an in-chat tag that communicates "Hey, this question has alr
Dear Prof. X,
I have serious concerns with some of the material that you covered in class in regards to browser sniffing and the use of http://www.w3schools.com/ as a reference guide.
Browser Sniffing
While there are occasions on the edge where browser sniffing may be necessary this is almost never the case when first starting out. I disagree that browser sniffing should be used as a means of determining functionality and so do a lot of other developers in the industry.
http://ryanmorr.com/archives/brower-detection-necessary-or-negligent
http://jibbering.com/faq/notes/detect-browser/
@cspray
cspray / php_error_handling_closure.php
Created December 31, 2011 04:26
PHP Error Handling Closure
<?php
// A closure to store error information in an array
$errors = array();
$errorCallback = function($severity, $message, $file = null, $line = null, $context = null) use (&$errors) {
$normalizeSeverity = function() use ($severity) {
$severityMap = array(