coding

How to conditionally display variables with EJS

Short version: <%= user.name ? user.name : ” %> When using EJS as a template language, it can be a bit of a mystery how to concisely display variables if and only if they are defined. For example, if you have a form field that is pre-filled with data from the database, you usually don’t […]

The World’s Simplest AutoTweeter (in node.js)

Last month, I set up a quick little autotweeter using Node.js to help me with Repeal Day Santa Barbara. I wrote a short blurb about it before hand, here’s what actually shipped. (Many thanks to the guys at the Santa Barbara Hacker Space for inspiring and contributing to this project.) The plan was simple. Set […]

Towards a node.js Auto-Tweeter

I’ve been intrigued by node.js as a platform for highly-scalable server applications written in javascript and finally found a super simple application I wanted to try with it: an auto-tweeter that would let me schedule future tweets to my own account.  I’m organizing a pub crawl for Repeal Day and I want a flight of […]

I Support The Standard Label!A simple way for websites to describe in clear, consistent terms what they do with the data we share.
Join the announcement list for up-to-date info.