Writings

Learning, occasionally

Post-Mortem: 3 Years Without Dad

Post-Mortem: 3 Years Without Dad 150 150 Clark

You will find no coherent message here. Three years ago, today, my father’s life ended. Encouraged by my therapist and the anniversary, I write this retrospective — a post-mortem of the experience of my dad’s death and life after loss of a parent. We start at the end. Obituary Roger A. Feusier…

read more

Helper Function .bindAll

Helper Function .bindAll 150 150 Clark

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

The Usual Utility Functions in 2kb, Unminified

The Usual Utility Functions in 2kb, Unminified 150 150 Clark

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

Printing from Streams with sed -n '/pattern/'p

Printing from Streams with sed -n '/pattern/'p 150 150 Clark

I like to think of the Unix command-line utilities as though they were interesting characters — it helps me remember the different command switches based on each command’s personality. sed is my simple and obedient search hound. He has a single input — his hound-dog nose. He can match patterns…

read more

CoffeeScript Polyfill for Function.prototype.bind

CoffeeScript Polyfill for Function.prototype.bind 150 150 Clark

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. To use the polyfill, just add the above snippet wherever needed.

read more

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

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

Every user of your web app is trying to break it 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…

read more

The Language of Knowledge Meets the Language of the Web

The Language of Knowledge Meets the Language of the Web 150 150 Clark

I am pleased to announce today’s release of the jKif Parser. SUO-KIF meet JavaScript — JavaScript meet SUO-KIF The jKif Parser facilitates the transmission and growth of formal knowledge by providing JavaScript access to the vast stores of open SUO-KIF ontologies and factbases. Available for Installation from NPM Read the…

read more

Getting Started with webpack

Getting Started with webpack 150 150 Clark

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…

read more
Reverse-I Search Example

Reverse-i-Search with CTRL-R

Reverse-i-Search with CTRL-R 512 51 Clark

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…

read more

5 Mins to Deployment – Ubuntu and PostgreSQL on Digital Ocean

5 Mins to Deployment – Ubuntu and PostgreSQL on Digital Ocean 150 150 Clark

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… Deployment with Ubuntu and PostgreSQL on Digital Ocean By Ryan Leung Recently, I had to deploy a project that used PostgreSQL…

read more