Follow @endyourif rss Facebook LinkedIn

Full screen/background video from YouTube using jQuery

Published on Feb 17, 2020

I was searching the web for some neat ideas and I came across this intriguing jQuery plugin that allows you to embed a YouTube video on your website. No, not the standard player, but instead the video is your background. Similar to how you would use an image or color, the YouTube video plays automatically in full screen as the background of your website; here is a demo of the plugin.

Access query string parameters with Express and Node.js

Published on Feb 15, 2020

Passing data through the URL is a very common practice. As you can see with the URLs on my website, I pass - what I call - a slug of my post title in the URL. In this case: access-query-string-parameters-with-express-and-node-js. With this data I can figure out dynamically what blog post to show. Another common way is to use query string parameters such as ?id=1. There are two common ways that I perform this using Express and Node.js.

If you are not already familiar with Express you can read my article on setting up Express with Node.js before you dive into this blog.

Can't set headers after they are sent

Published on Feb 15, 2020

When you are using Node.js with Express and you've received the dreaded "cannot set headers after they are sent to the client" where do you even begin. This article will explore common causes of this error, such as calling res.writeHead, res.write, or res.redirect.

Why am I receiving cannot set headers after they are sent to the client?



Below are the three most common reasons this error occurs when you are using Express as a web server with Node.js:


  1. Calling res.writeHead to early

  2. Calling res.redirect then setting more data

  3. Calling next after response has been returned



Keep reading for examples of how each of these three common reasons may occur with examples of what the incorrect code will look like and how it can be fixed so you don't continue to receive error [err_http_headers_sent]: cannot set headers after they are sent to the client.

Custom Knockout js binding to confirm before variable change

Published on Feb 9, 2020

Having a user confirm a selection is a very common occurrence when an action is performed. In this Knockout js tutorial I'm going to demonstrate how to ask the user to confirm their choice. Only when the user has clicked OK will the observable value be changed. This example will leverage the ko.extender to create a custom Knockout extender.

Custom Knockout JS Extender

Integrating with Twilio using C#

Published on Feb 7, 2020

I like when integrations like Twilio are simple and straightforward. I recently had the privilege of implementing it for my company. For my implementation I have a couple of special requirements that I think makes my solution better than just referencing a NuGet package and calling MessageResource.Create.

My requirements require creating user controlled text messaging templates and customer controlled enabling/disabling of one or more text messages. Let's get started.

Integrating with Twilio using C#

Copy to clipboard with #JavaScript

Published on Feb 3, 2020

Create MVC DropDownList from an Enum

Published on Feb 2, 2020

Using ActionFilterAttribute to validate all form input

Published on Feb 1, 2020

Knockout - Uncaught ReferenceError: Unable to process binding

Published on Jan 31, 2020

Using DB_NAME with MSSQL

Published on Jan 31, 2020

PHP: self vs $this - what's the difference?

Published on Jan 30, 2020

The JSON request was too large to be deserialized

Published on Jan 29, 2020

Add a column with a default value to an existing table in SQL Server

Published on Jan 29, 2020

Include a JavaScript file in another file

Published on Jan 28, 2020

Finding Deleted File with GitHub

Published on Jan 27, 2020

Solution to SameSite None iFrames with C#

Published on Jan 27, 2020

Deleting an element from an array in PHP

Published on Jan 26, 2020

Validate an email address in JavaScript

Published on Jan 26, 2020

Catching multiple exceptions with C#

Published on Jan 26, 2020

Deep clone an object with C#

Published on Jan 25, 2020

Why you should use strict with JavaScript

Published on Jan 24, 2020

MSSQL Running an extra AND statement

Published on Jan 24, 2020

What is the difference between String and string in C#?

Published on Jan 24, 2020

Updating all npm packages in a Node.js project

Published on Jan 23, 2020

Passing/reading command line arguments with Node.js

Published on Jan 21, 2020

Searching for and loading an invoice object using NetSuite Restlet

Published on Jan 18, 2020

Finding non-printable characters in MSSQL

Published on Aug 1, 2019

NetSuite API - Setting up Access Token Authentication

Published on Jul 20, 2019

Setup routes in Node.js with Express.js and Jade with controllers, models, and views

Published on Jul 14, 2019

Node.js as a background service

Published on Jul 6, 2019

CSS3’s border-radius property and border-collapse:collapse don’t mix

Published on Jun 25, 2019

Web API Global Exception Handler using an ExceptionFilterAttribute filter

Published on Apr 19, 2019

Improving the performance of slow Entity Framework queries

Published on Apr 18, 2019

Preventing race conditions with sp_getapplock

Published on Apr 17, 2019

Mixing Powershell and Git with powerful shortcut commands

Published on Apr 16, 2019

Git pull rebase recovery

Published on Apr 15, 2019

Dependent DLL is not getting copied to the build output folder in Visual Studio

Published on Apr 14, 2019

Two different versions of the same DLL with C#

Published on Apr 13, 2019

Creating a Windows Self-Signed SSL Certificate for use with IIS

Published on Apr 12, 2019

Specflow Steps are not binding or show up red

Published on Apr 11, 2019

HtmlHelper Extenstion to convert an object to JSON with C#

Published on Apr 10, 2019

Create GUID / UUID in JavaScript

Published on Apr 9, 2019

Controller does not have a default constructor

Published on Apr 8, 2019

Using a forEach loop with JavaScript

Published on Apr 7, 2019

C# Convert any value to a boolean

Published on Apr 5, 2019

Knockout.js foreach afterRender when loop is completed

Published on Apr 3, 2019

Merge one or more Git commits into a different branch

Published on Apr 1, 2019

C# Ordinal String Extension

Published on Mar 29, 2019

C# - Convert an Enum to a list

Published on Mar 27, 2019

Updating specific fields using Entity Framework

Published on Mar 25, 2019

Creating a Transparent Background with CSS

Published on Mar 22, 2019

Semi Rant: Absolute Position when it's relative

Published on Mar 21, 2019

Entity Framework's Code-First with an ObjectContext

Published on Mar 20, 2019

Checking if an element exists with jQuery

Published on Mar 19, 2019

Creating Diagonal Lines with CSS

Published on Mar 18, 2019

Posting form variables that are not strongly typed with MVC

Published on Mar 17, 2019

Creating Your Own jQuery Selector

Published on Mar 16, 2019

Creating a Background Gradient with CSS

Published on Mar 15, 2019

Implementing a trigger callback with jQuery

Published on Mar 14, 2019

Pass Model or Form Data with MVC when redirecting

Published on Mar 13, 2019

Manipulating an array of DOM elements with jQuery $.map()

Published on Mar 12, 2019

Displaying a Progress Bar with HTML

Published on Mar 11, 2019

Using the JsHelper in CakePHP to submit a form with AJAX

Published on Mar 10, 2019

Creating your own UrlHelper Extension with MVC

Published on Mar 9, 2019

CSS Attribute Selectors

Published on Mar 8, 2019

Rotating DOM Elements using CSS

Published on Mar 7, 2019

Compile Views with your MVC project

Published on Mar 6, 2019

Using CakePHP to scaffold a new database table

Published on Mar 5, 2019

Using CakePHP with the jQuery Sortable Plugin

Published on Mar 4, 2019

Git - Squashing multiple commits into one when merging a branch

Published on Mar 3, 2019

Organizing data with the jQuery Sortable plugin

Published on Mar 2, 2019

Transitioning AJAX Content into view with CSS3 Animations

Published on Mar 1, 2019

Transitioning AJAX Content into view with jQuery $.animate()

Published on Feb 28, 2019

C# Truncate String Extension

Published on Feb 28, 2019

MVC: Accessing the RouteData inside of your C# code

Published on Feb 27, 2019

Delete duplicate rows with MySQL or MSSQL

Published on Feb 27, 2019

jQuery: Splitting an unordered list into multiple columns

Published on Feb 26, 2019

jQuery: Creating templates for your HTML Content

Published on Feb 25, 2019

CSS3: Custom Fonts using font-face

Published on Feb 24, 2019

jQuery: Padding a Variable or String with a Specific Character

Published on Feb 23, 2019

Apply two different colors to a single character with CSS

Published on Feb 22, 2019

Deep clone an object with JavaScript

Published on Feb 21, 2019

Disabling text selection/highlighting with CSS

Published on Feb 20, 2019

Experimenting with the canvas for a basic walk animation

Published on Feb 19, 2019

Deep clone an object with jQuery

Published on Feb 19, 2019

jQuery: Global AJAX Events for Start, Stop, Complete, or Error

Published on Feb 18, 2019

Cannot find module (SNMPv2-TC)

Published on Feb 18, 2019

Concatenate Multiple Rows From a Table Into One Field with MySQL

Published on Feb 17, 2019

C# HtmlExtension to display SVGs

Published on Feb 16, 2019

Cloning or Checking out a repository with GIT

Published on Feb 15, 2019

JavaScript - Search a string for a substring

Published on Feb 15, 2019

Set Cursor Position of textarea with JavaScript

Published on Feb 14, 2019

posh-git: the only GIT command line tool I use

Published on Feb 13, 2019

10 year anniversary of End Your If!

Published on Feb 11, 2019

JavaScript - Remove a specific element from an array

Published on Feb 7, 2019

Setting up SSL with nginx including redirects from non HTTPS traffic

Published on Feb 6, 2019

C# Improving string.IsNullOrEmpty readability

Published on Feb 5, 2019

C# OutputCache with subdomains

Published on May 4, 2018

Difference between location.href and location.replace

Published on Feb 9, 2018

Retrieving query string variables with JavaScript

Published on Feb 8, 2018

Zero Padding a Number with JavaScript

Published on Feb 7, 2018

C# Convert date from UTC to EST

Published on Jun 7, 2017

Knockout: `this` context with ko computed observables and subscribe

Published on May 29, 2017

How to return a CSV from ASP.NET Web API using C#

Published on May 4, 2017

Traffic Light Sequence with the Raspberry Pi

Published on Dec 14, 2015

Setting up RPi.GPIO with OpenELEC

Published on Dec 7, 2015

Unit Testing Data Validation with MVC

Published on May 11, 2015

Removing Data Validation from MVC Controllers

Published on May 6, 2015

Integrating Automapper with an MVC Result Filter

Published on May 4, 2015

Convert the (un)check all to a #KnockoutJS Component

Published on Apr 29, 2015

Replacing Radio Buttons with a Button Group using Bootstrap and #KnockoutJS

Published on Apr 27, 2015

(Un)Check All using #KnockoutJS

Published on Apr 23, 2015

ASP.NET MVC 5 with Bootstrap and Knockout.js

Published on Apr 21, 2015

Speeding up my unit tests

Published on Apr 28, 2014

MySQL: OR versus UNION – which is faster?

Published on Mar 24, 2014

Advanced Automatic Ninject Bindings

Published on Jan 13, 2014

Automatic Ninject Bindings

Published on Jan 7, 2014

How I overcame my anxieties

Published on Oct 19, 2013

Android ListView with a Footer Form

Published on Sep 26, 2013

Three-month work-life retrospective

Published on Sep 11, 2013

Behavior Therapy Tracker

Published on Sep 1, 2013

I’m hooked on test-driven development (TDD) with a Fizzbuzz C# Example

Published on Aug 6, 2013

Finding That Inner Calm

Published on Jun 18, 2013

If You Don't Start You Won't Finish

Published on Jun 13, 2013

Setting Up CakePHP with IIS

Published on Jun 11, 2013

What Do You Care Most About When Reviewing Someone Else’s Code?

Published on Jun 10, 2013

Developers are Authors

Published on Jun 6, 2013

Bad Developers Should NOT Use Frameworks

Published on Jun 5, 2013

Implementing the Repository Pattern with CakePHP

Published on Jun 3, 2013

My Epic Farewell Poem

Published on May 30, 2013

Slowing Down Before You Speed Up

Published on May 29, 2013

My Favorite Thing About Coldfusion

Published on May 28, 2013

Automapper Performance Testing

Published on May 27, 2013

Should I Leave My Job?

Published on May 24, 2013

Why the Repository Pattern

Published on May 20, 2013

Why is my calendar always full?

Published on May 15, 2013

Simple Things Make Me Happy

Published on May 14, 2013

Entity Framework Beginner’s Guide Done Right

Published on May 13, 2013

Why Java Makes Me Tremble In My Boots

Published on May 6, 2013

Trial and Error – Your best friend and worst enemy!

Published on Apr 29, 2013

Compelling Interview Questions

Published on Apr 25, 2013

My First Experiences with Kinect for Windows - @KinectWindows

Published on Mar 5, 2013

Javascript, the Back Button, and Windows Phone 8 Development

Published on Feb 18, 2013

MSConfig – What Would I Do Without You!

Published on Feb 11, 2013

Simplifying the buzz word “Responsive Design”

Published on Feb 4, 2013

Changes to Model:find('first') in CakePHP 2.3

Published on Jan 30, 2013

Recent Guest Posts on PHPMaster.com

Published on Jan 7, 2013

2012 Year in Review

Published on Dec 21, 2012

Node.js Versus Nginx: Bare Bones Test

Published on Dec 4, 2012

Node.js Versus Apache2: Bare Bones Test

Published on Dec 3, 2012

CSS: Start Generic before going Specific

Published on Oct 23, 2012

Node.js – Ajax Pagination without the Pages

Published on Oct 15, 2012

The Importance of Local Development Environments

Published on Oct 11, 2012

Catching Email Resellers with the + Sign

Published on Oct 10, 2012

PHP: Single Quotes versus Double Quotes

Published on Oct 9, 2012

Node using Jade Templates with Express

Published on Oct 8, 2012

Google Event Tracking

Published on Oct 5, 2012

My First Node Application

Published on Oct 4, 2012

Mysql: Insert or Update in One SQL Statement

Published on Oct 3, 2012

Regular Expressions with Mysql

Published on Oct 2, 2012

Mysql Uptime Check Script

Published on Oct 1, 2012

Renaming a Database in Mysql

Published on Sep 28, 2012

Using Jquery to Check a Checkbox

Published on Sep 27, 2012

Determine if an element is visible with Jquery

Published on Sep 26, 2012

A Fancier Twitter Timeline

Published on Sep 25, 2012

Upgrading my Blog - The Final Saga!

Published on Sep 24, 2012

CakePHP Global Constants and Functions

Published on Sep 21, 2012

CakePHP Extending one View from Another

Published on Sep 20, 2012

The Best Way to Prevent SQL Injection

Published on Sep 19, 2012

CakePHP 2.x Login System

Published on Sep 18, 2012

Load Testing Mysql with mysqlslap

Published on Sep 17, 2012

Update: It Actually Should Be LEPP Not LEMP or LAMP!

Published on Sep 14, 2012

A Short Rant About Coding Conventions

Published on Sep 13, 2012

Comparing a while loop against a foreach loop of an array

Published on Sep 12, 2012

PhoneGap and Jquery Mobile – A Truly Winning Combination

Published on Sep 11, 2012

Are you having CakePHP and NGINX Rewrite Rule Issues?

Published on Sep 10, 2012

What I Learned This Summer

Published on Sep 7, 2012

It's LEMP not LAMP!

Published on Sep 6, 2012

Amazon EC2 Shoutout!

Published on Sep 5, 2012

A Simple But Effective Speed Comparison

Published on Sep 4, 2012

PHP: Require/Include vs Autoloader

Published on Aug 29, 2012

JavaScript: Easy Creation of Countdown Timers

Published on Aug 28, 2012

CakePHP Version Comparison with PHP Version Comparison

Published on Jun 25, 2012

2011: Year in Review

Published on Jan 2, 2012

MVC 3 Routing Example

Published on Oct 17, 2011

20 Recipes for Programming MVC 3

Published on Oct 12, 2011

Highlights from Webistrate: HTML5, MVC 3, and CSS3

Published on Sep 21, 2011

Making AJAX Content Loading Prettier

Published on Sep 8, 2011

Improving the speed of AJAX request and response times

Published on Sep 1, 2011

Developers to the rescue of designers...again!

Published on Aug 30, 2011

Webistrate.com - Draw Your Own Conclusions

Published on Aug 25, 2011

ToLower-ToUpper and the CurrentCulture.CultureInfo

Published on Aug 8, 2011

Officially published my CakePHP Book

Published on May 19, 2011

CakePHP 1.2 VS 1.3 VS 2.0 Page Request Times

Published on Mar 7, 2011

AJAX Star Rating Plugin For CakePHP

Published on Mar 2, 2011

CakePHP 2-0 Ajax Pagination WITHOUT The Pages

Published on Feb 28, 2011

CakePHP CSS Enhancements From 1.2 To 1.3

Published on Feb 23, 2011

Creating AJAX Pagination WITHOUT The Pages

Published on Feb 21, 2011

IBM's Watson on Jeopardy, The Final Saga

Published on Feb 17, 2011

IBM's Watson On Jeopardy!

Published on Feb 16, 2011

Building A Scalable Queueing System With PHP

Published on Feb 14, 2011

Publishing an e-book on Smashwords

Published on Feb 7, 2011

Interesting CakePHP Bakery Components

Published on Feb 3, 2011

CakePHP 2.0 Rant Retraction

Published on Feb 1, 2011

CakePHP 2.0 Rant

Published on Jan 31, 2011

Random Funny Technology Videos

Published on Jan 27, 2011

Using the TextHelper with CakePHP

Published on Jan 24, 2011

Maintaining a session in a session-less environment

Published on Jan 17, 2011

Speeding up client/server response times

Published on Jan 10, 2011

Modifying the CakePHP Bakery Templates

Published on Jan 3, 2011

Maintaining the back button with AJAX

Published on Dec 28, 2010

AJAX, can there be too much?

Published on Dec 22, 2010

Making Money With Flash Games

Published on Jun 27, 2010

iPhone Apps Randomly Crashing?

Published on Feb 4, 2010

Optimizing CakePHP Websites

Published on Jan 20, 2010

Adding SEO functionality

Published on Nov 15, 2009

Developer High Fives (in honor of Barney Stinson)

Published on Sep 22, 2009

margin: 0 auto; not centering in Internet Explorer?

Published on Sep 18, 2009

unbindModel and $this->paginate()

Published on Aug 20, 2009

Someone at work tick you off?

Published on Jul 28, 2009

Twitter, are you taking advantage yet?

Published on Jun 29, 2009

How to write for people and rank high with your keywords

Published on Jun 22, 2009

Follow me on Twitter

Published on Jun 19, 2009

The Shocking Truth to Website Success...and it’s not top Google Rankings!

Published on Jun 15, 2009

Facebook Development - Quick and Easy Dialogs

Published on Jun 10, 2009

Sharing your way to success

Published on Jun 6, 2009

Fastest Top Five FREE Ways to Gain New Traffic

Published on May 28, 2009

Photobucket, Photos, and You

Published on May 23, 2009

Facebook, Photos, and You!

Published on May 18, 2009

Creating your first iGoogle Gadget

Published on May 12, 2009

Bebo Development Scares Me

Published on May 7, 2009

setTimeout() vs setInterval() in Javascript

Published on May 5, 2009

Caching Queries in CakePHP

Published on Apr 25, 2009

Understanding group bys

Published on Apr 18, 2009

ActivityIndicator with a UIWebView

Published on Apr 15, 2009

Custom pagination query in CakePHP

Published on Apr 13, 2009

3 Flaws to CakePHP's AuthComponent

Published on Apr 10, 2009

The flaws of using isset()

Published on Apr 8, 2009

Reset UINavigationController

Published on Apr 6, 2009

Scroll a UIWebView

Published on Apr 4, 2009

Transparent UIWebView

Published on Apr 2, 2009

A friendly framework reminder

Published on Apr 1, 2009

UINavigationController Background Color

Published on Mar 31, 2009

Web Developers are Warriors

Published on Mar 30, 2009

Unbind Model Validation in CakePHP

Published on Mar 28, 2009

Jquery vs Prototype/Scriptaculous

Published on Mar 26, 2009

How attentive are you?

Published on Mar 25, 2009

5 Tips to Become a Better Web Developer

Published on Mar 24, 2009

Login system with CakePHP in under 10 minutes

Published on Mar 23, 2009

Optimize your CSS and JS with CakePHP in minutes

Published on Mar 21, 2009

Importance of using the CakePHP Helpers

Published on Mar 20, 2009

Re-map key/value array data in PHP

Published on Mar 19, 2009

How to deal with stress at work

Published on Mar 17, 2009

When to use element() and when to requestAction()

Published on Mar 16, 2009

CakePHP Containable Statement Pitfalls

Published on Mar 15, 2009

Keeping your CakePHP Controllers Clean

Published on Mar 14, 2009

Underscores and Internet Explorer Fun

Published on Mar 13, 2009

Drag and drop category management with CakePHP

Published on Mar 11, 2009

Drag and drop with animations in jquery

Published on Mar 10, 2009

How to add comments with AJAX in CakePHP

Published on Mar 9, 2009

How to advance our CMS in CakePHP

Published on Mar 8, 2009

How to create a CMS with CakePHP

Published on Mar 7, 2009

AJAX Select box in CakePHP

Published on Mar 6, 2009

How to setup a route in CakePHP

Published on Mar 5, 2009

A practical CASE Statement Example

Published on Mar 4, 2009

How to create a socket server in PHP

Published on Mar 2, 2009

StringExtractComponent for CakePHP

Published on Feb 28, 2009

Top 5 SEO Tips To Achieve Top 10 Rankings In Google

Published on Feb 28, 2009

The Importance of Database Indexing

Published on Feb 27, 2009

Dynamic COUNT() Versus Static COUNT()

Published on Feb 24, 2009

Why You Should Avoid ORDER BY RAND() OR NEWID()

Published on Feb 23, 2009

Why You Should Always Backup

Published on Feb 22, 2009

Fixing slow drag and drop with scriptaculous

Published on Feb 18, 2009

Why Frameworks Are Better

Published on Feb 17, 2009

A Simple SEO Trick To Boost Your Rankings

Published on Feb 16, 2009

CSS Tips - Margins in Internet Explorer

Published on Feb 16, 2009

Why Is Internet Explorer Better?

Published on Feb 15, 2009

Facebook Development and $_SERVER['HTTP_REFERER']

Published on Feb 15, 2009

Drag and Drop with AJAX Example

Published on Feb 14, 2009

SQL Tips - Why LEFT JOINS are bad

Published on Feb 13, 2009

How to get indexed by Google in ONE hour

Published on Feb 12, 2009

YSlow - Helping slow web pages load faster

Published on Feb 11, 2009

Firebug - A developer's best friend

Published on Feb 11, 2009