Clark Feusier

Software Engineer and Metalogician

18 September 2015

Helper Function .bindAll

Like most JavaScripters, I often find myself needing to manually control the this-binding of a function on invocation. Event handlers and callback functions are often re-bound to a different context than the caller — meaning that if those event handlers or callbacks reference this, they might be referencing the wrong object.

Read more
15 September 2015

Underramdash.js: the Usual Utility Functions in 2kb, Unminified

I have now been able to remove Underscore.js, Ramda, and Lodash from the dependencies of multiple projects, by using the following underramdash.js helpers. Note, this file is 2kb unminified and unzipped, whereas Underscore.js is 52kb unminified and unzipped…

Read more
12 September 2015

Unix to Know this Command Series: Printing from Streams with sed -n '/pattern/'p

sed is my simple and obedient search hound. He has a single input — his hound-dog nose. He can match patterns coming through the input stream to patterns given to him by his handler. And finally, he can output his findings in an output stream — WOOF!
Read more
08 September 2015

CoffeeScript Polyfill for Function.prototype.bind

Recently, I needed to polyfill Function.prototype.bind to use with PhantomJS. The project I was working on was written in CoffeeScript, so I rewrote the MDN Function.prototype.bind JavaScript polyfill in CoffeeScript

Read more
07 September 2015

An Introduction to Injection, XSS, CSRF, and Practicing Safe Security

In this post, we will discuss practical web security. We will start by covering the who — who you need to protect against. Next, we will cover the what — what common exploits you need to know about and protect against. Finally, the how — how to protect against the common exploits, including code examples. If you are interested, let us begin...
Read more
24 May 2015

The Language of Knowledge Meets the Language of the Web

I am pleased to announce today's release of version 1.0.0 of the jKif Parser, available for use today.
Read more
11 May 2015

Guest Post: Getting Started with webpack

I work with a guy named, Raghu Kasturi. This talented buddy of mine shared a tutorial with us — getting started with webpack. We will learn about webpack, why we might use webpack, and finally, how to actually use it to enhance our work. The following knowledge-bombs and practical tutorial are straight from Raghu, writing from Bangalore, India.

Read more
14 April 2015

Unix to Know this Command Series: Reverse-i-Search with CTRL-R

If you want to look cool, save time, and live a better life, then spend 5 minutes learning the shell command CTRL-R — sometimes called reverse-i-search. There is rare shell command that I use more often as a software engineer; I would like to pass my love for this wonderful utility on to the rest of the world. Here we go <3

Read more
13 April 2015

Guest Post: 5 Mins to Deployment - Ubuntu 14.04 and PostgreSQL 9.3 on Digital Ocean

My friend and talented colleague, Ryan Leung, wrote this guest tutorial on deploying to Digital Ocean with an Ubuntu and PostgreSQL setup. The following step-by-step guide is from Ryan…

Read more
22 March 2015

Sudoku Solution Validator - Code Example

Five months ago, I was asked to solve a problem with a pair — the challenge was to write a Sudoku solution validator. We were expected to take a two-dimensional array that represented a Sudoku board and determine whether or not the board was ‘solved’ based on the rules of Sudoku.

Read more