Reference a Variable Outside of a Handlebars Each Loop

Once within an Handlebars each loop, you can no longer just reference a variable that is outside the loop.  In the example below, the first ‘ParentVariable’ will render correctly, but the one within the “each” loop won’t.  {{ParentVariable}} {{#each Users}} {{ParentVariable}} {{/each}} To use the variable within the “each” block, you’ll need to add a […]

Read More

Chrome displays a different height than what Chrome says the height should be.

This took me quite a while to track down, which is unfortunate since I know I’ve ran into this several times.  Basically I was changing the height of an element, but no matter where I specified the height, it wasn’t displaying what I was putting in — even if I stuck a style attribute right […]

Read More

Google Analytics Sucks

Yeah, it’s a little blunt and harsh, but over the years I’ve been growing more and more disatisfied with the tool. A long while ago, I created my own little website visitor tracking tool, which I have slowly been dusting off. Eventually I may completely remove Google from my websites and opt for my own […]

Read More

My Backend is Better than Yours

For some reason I found myself in a subreddit where someone started the familiar post on why their backend programming language was better than PHP. I see this come up quite a bit with regards to PHP, I even remember responding to someone’s blog post several years ago where they were complaining about PHP — […]

Read More

Git Ignore a Directory

There is a folder within a project that you don’t want to be tracked with git, to do this on a windows computer: 1. In the project folder managed by git, make a new file named ‘.gitignore.’ (no quotes, but with periods at both ends — it will automatically be changed to ‘.gitignore’ 2. Add […]

Read More

Why Isn’t My SVG Image the Right Size in Internet Explorer

My svg images looked fine in the good browsers, but in Internet Explorer, they were appearing huge!  I attempted to just set the size using css in the image tag, but that didn’t work.  What actually did work, was I opened up the svg file, and added a “viewBox” value to the svg declaration, so […]

Read More

Enhancements for jPlayer Implementation

I love the jPlayer for easily being able to add modern mp3 support to web pages.  I wanted a few additional features, so I created this additional script which adds a few updated features: Adding rewind/fast-forward support Ability to toggle the volume controls on and off Ability to specify the mp3 url by setting a […]

Read More

Debugging Firefox Mobile on Your Computer

I needed to debug a web page that I was working on, which was having some issues on mobile versions of firefox.  I just needed to look at the console, but setting this up was a bit complicated, moreso than it should be.  This should hopefully help: On your phone: Settings>About Phone>Build number (tap this 7 times […]

Read More

Add Point Markers to a Google Chart Line Chart

It\’s pretty easy to add points or nodes to a google line chart.  The keys are to add the pointSize option to the chart options object.  By default, it\’s set to 0, so the points don\’t appear.  The color will set to be whatever you have set in your colors series.  Also note that the […]

Read More

Add Stroked Point Markers to a Google Line Chart

I was pretty easily able to

Read More